Encrypt and Decrypt “ABZSTYXN” using the key k=7 by shift￾cipher method.

Antworten (1)

key=7;
msg='ABZSTYXN';
encrypt=char(mod(msg-'A'+key,26)+'A');
decrypt=char(mod(encrypt-'A'-key,26)+'A');

Kategorien

Mehr zu Encryption / Cryptography finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 16 Mär. 2022

Beantwortet:

am 16 Mär. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by