Most significant bit (MSB) in ASCII code

  • Thread starter Cylab
  • Start date
  • Tags
    Bit Code
In summary, the conversation discusses the properties of ASCII code and how cutting a text file by byte can reveal information through the presence of a 0 in the MSB. The speaker is seeking ways to make strings random in ASCII code without using encryption in order to prevent this information from being revealed.
  • #1
Cylab
54
0
Hello

You know that the MSB in each byte is always zero in ASCII code (e.g. text file).
If I cut the text file by byte, then there will be 0 (which is MSB) that might reveal some information... So, are there any stochastic rules that I make the strings random in ASCII code?

It will be helpful, if anyone will provide me some ways to make strings into randome or anything at all that will be hint.

Thanks in advance for your reading.
 
Physics news on Phys.org
  • #2
It might help if you would explain what you mean by "make a string random".
 
  • #3
Sorry for being late...the point is how to make the Most significant bit appear anywhere in a sequence...(not using encryption)
 

FAQ: Most significant bit (MSB) in ASCII code

What is the Most Significant Bit (MSB) in ASCII code?

The Most Significant Bit (MSB) in ASCII code refers to the first, or leftmost, bit in a binary representation of a character. It has a value of 1 if the character is in the range of 128-255, and a value of 0 if the character is in the range of 0-127.

Why is the Most Significant Bit (MSB) important in ASCII code?

The MSB is important because it determines the range of characters that can be represented in ASCII code. Characters with a MSB of 1 have a wider range of possible values than those with a MSB of 0.

How is the Most Significant Bit (MSB) used in ASCII code?

The MSB is used to determine the value of a character in ASCII code. If the MSB is 1, the character is in the extended ASCII range, and its decimal value can be found by subtracting 128 from the binary value of the remaining 7 bits. If the MSB is 0, the character is in the standard ASCII range, and its decimal value can be found directly from the 7 remaining bits.

What happens if the Most Significant Bit (MSB) is changed in ASCII code?

If the MSB is changed from 0 to 1, the character will be in the extended ASCII range and will have a different decimal value. If the MSB is changed from 1 to 0, the character will be in the standard ASCII range and may represent a different character entirely.

How does the Most Significant Bit (MSB) relate to other bits in ASCII code?

The MSB is the first, or leftmost, bit in a binary representation of a character. The remaining 7 bits are known as the Least Significant Bits (LSB). Together, they make up an 8-bit binary code that represents a character in ASCII.

Similar threads

Replies
7
Views
2K
Replies
56
Views
9K
Replies
1
Views
2K
Replies
15
Views
3K
Replies
23
Views
3K
Replies
3
Views
845
Back
Top