How can I encrypt a text file using RSA?

2 次查看(过去 30 天)
I have done encryption of text message using RSA. But i want to encrypt text file using RSA.
m=input('\nEnter the message: ','s');
In above code i give the text message in S. But i want to read a text file instead of text message. How can i do that? Pls can anyone give me help or code which can i write?

回答(1 个)

Walter Roberson
Walter Roberson 2016-9-16
m = fileread('NameOfInputFileGoesHere.txt');

类别

Help CenterFile Exchange 中查找有关 Encryption / Cryptography 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by