Question 8844 – Shortest-Path
May 20, 2024Question 17559 – NTA UGC NET Dec 2023 Paper-2
May 20, 2024Question 10785 – Network-Security
Your are given the following four bytes :
10100011 00110111 11101001 10101011
Which of the following are substrings of the base 64 encoding of the above four bytes?
Correct Answer: B
Question 4 Explanation:
You are given the following four bytes:
10100011 00110111 11101001 10101011
So, in total we have 32 bits. And for base 64 we need 6 digits of binary no. to represent one digit of base 64 no.
So lets padd 4 bits on RHS, so that total digits will become 36 and we can separate then as group of 6 digits each.
![](https://solutionsadda.in/wp-content/uploads/2020/02/68-1.jpg)
Now, the longest substring will be from checking option is ‘fpq’.
10100011 00110111 11101001 10101011
So, in total we have 32 bits. And for base 64 we need 6 digits of binary no. to represent one digit of base 64 no.
So lets padd 4 bits on RHS, so that total digits will become 36 and we can separate then as group of 6 digits each.
![](https://solutionsadda.in/wp-content/uploads/2020/02/68-1.jpg)
Now, the longest substring will be from checking option is ‘fpq’.
zdp
fpq
qwA
oze
Subscribe
Login
0 Comments