How do you decode a binary string that is encrypted in ASCII??
3 次查看(过去 30 天)
显示 更早的评论
binary code =00001011
1 个评论
Jan
2012-11-5
The question does not contain enough information: There is an infinite number of possible encryption methods. Therefore 0001011 could be any letter. Perhaps you mean "encoded" instead of "encrypted". But even then it is not uniquely defined, which "letter" corresponds to the number 11 (binary 1011). So please provide any details.
回答(1 个)
Walter Roberson
2012-11-4
bin2dec('00001011')
2 个评论
Walter Roberson
2012-11-5
char(bin2dec('00001011'))
Note: in this particular example, there is no printable glyph for the character; it is control-K
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Encryption / Cryptography 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!