Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/MD5/Oberon-2/md5.oberon
Normal file
17
Task/MD5/Oberon-2/md5.oberon
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
MODULE MD5;
|
||||
IMPORT
|
||||
Crypto:MD5,
|
||||
Crypto:Utils,
|
||||
Strings,
|
||||
Out;
|
||||
VAR
|
||||
h: MD5.Hash;
|
||||
str: ARRAY 128 OF CHAR;
|
||||
BEGIN
|
||||
h := MD5.NewHash();
|
||||
h.Initialize;
|
||||
str := "The quick brown fox jumped over the lazy dog's back";
|
||||
h.Update(str,0,Strings.Length(str));
|
||||
h.GetHash(str,0);
|
||||
Out.String("MD5: ");Utils.PrintHex(str,0,h.size);Out.Ln
|
||||
END MD5.
|
||||
Loading…
Add table
Add a link
Reference in a new issue