フィルターのクリア

Encrypting a Message with secret code?

6 ビュー (過去 30 日間)
Tyler Silva
Tyler Silva 2015 年 10 月 26 日
回答済み: TastyPastry 2015 年 10 月 26 日
I need help encrypting a message with code. Instructions are in the document attached. Heres the code I have so far:
s ='MATLAB'
val=double(s)
nume=reshape(val, 3, 5)
m = [1 5 3; 2 11 8; 4 24 21]
%inv(m)
nume=nume-32
ncoded=mod(m*(nume),95)+32
scoded=reshape(char(ncoded),1,15)
%sdecoded = reshape(double(scoded),3,5)
%ndecoded = mod (inv(m)*(sdecoded-32), 95) + 32
%sdecoded = reshape (char(ndecoded), 1, 15)

採用された回答

TastyPastry
TastyPastry 2015 年 10 月 26 日
There are tons of Caesar Cipher resources out there since it's a pretty basic problem in computer science courses.

その他の回答 (0 件)

カテゴリ

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