Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/MD5/BaCon/md5.bacon
Normal file
17
Task/MD5/BaCon/md5.bacon
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
PRAGMA INCLUDE <stdio.h>
|
||||
PRAGMA INCLUDE <stdlib.h>
|
||||
PRAGMA INCLUDE <string.h>
|
||||
PRAGMA INCLUDE <openssl/md5.h>
|
||||
PRAGMA LDFLAGS -lcrypto -lm -w
|
||||
|
||||
DECLARE result TYPE unsigned char *
|
||||
DECLARE string TYPE const char *
|
||||
|
||||
string = "Rosetta code"
|
||||
strlenght = LEN(string)
|
||||
|
||||
result = MD5( string, strlenght , 0)
|
||||
|
||||
FOR i = 0 TO MD5_DIGEST_LENGTH-1
|
||||
PRINT result[i] FORMAT "%02x"
|
||||
NEXT
|
||||
Loading…
Add table
Add a link
Reference in a new issue