Simple encryption solution clarification

8 views (last 30 days)
sathvick hk
sathvick hk on 21 Jul 2020
function coded = caesar(enter,inc)
storev=double(enter);
answ=storev(1:length(storev))+inc;
coded=char(answ);
fprintf('%S',coded)
I dont think the code is correct but can you please point our the mistakes in it
Thanks in advance

Answers (0)

Categories

Find more on Encryption / Cryptography in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!