I am designing SHA-512 algorithm, i am new 2 matlab..i dont know how to perform the padding operation...can anyone help me?
Ältere Kommentare anzeigen
this is my code
ui=input('enter the username:','s')
pwi=input('enter the password','s')
concate=strcat(ui,pwi)
fprintf('%d',concate)
str=dec2bin(concate,8)
n=numel(str)
length=mod(896,1024)
a=896-n
now i want to perform the padding operation ,i want 1 followed by 871 zeros. Plz help me
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!