Encrypt and Decrypt “ABZSTYXN” using the key k=7 by shiftcipher method.
Mostrar comentarios más antiguos
Respuestas (1)
David Hill
el 16 de Mzo. de 2022
key=7;
msg='ABZSTYXN';
encrypt=char(mod(msg-'A'+key,26)+'A');
decrypt=char(mod(encrypt-'A'-key,26)+'A');
Categorías
Más información sobre Encryption / Cryptography en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!