How can I encrypt a text file using RSA?

7 ビュー (過去 30 日間)
Sanjeeb Behera
Sanjeeb Behera 2016 年 9 月 16 日
コメント済み: Walter Roberson 2016 年 9 月 16 日
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?
  3 件のコメント
Sanjeeb Behera
Sanjeeb Behera 2016 年 9 月 16 日
Thank u for ur response. Can i encryption and decryption of text file using RSA?

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 9 月 16 日
m = fileread('NameOfInputFileGoesHere.txt');

カテゴリ

Help Center および File ExchangeEncryption / Cryptography についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by