Code Help for Encrypting cypher
显示 更早的评论
How would you convert a message into numerical form using Cypher and loops. Once the message is converted to numerical form, reshaped it into matrix using reshape command. 50x50. Displaying the message to be encrypted and its numerical equivalent using display statements. Reading, the Original Message, Your Message, Numerical Message, Numerical message, Encoded Matrix, Encoded Numerical Matrix,
回答(1 个)
Walter Roberson
2020-4-20
How would you convert a message into numerical form using Cypher and loops.
It is unlikely you would do that, at least not directly.
If the message is an audio file or a movie, you would read the audio or video from the file; when you did that, then what you would have in memory would already be numerical form.
If the message is a string object or character vector, you would typically start by extracting the characters and using uint8() on them. If the string object or character vector could contain characters with position beyond 255, you would commonly use unicode2native, such as
unicode2native('say Ȣ','utf8')
类别
在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!