September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
14
Task/SHA-256/BaCon/sha-256.bacon
Normal file
14
Task/SHA-256/BaCon/sha-256.bacon
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
PRAGMA INCLUDE <openssl/sha.h>
|
||||
PRAGMA LDFLAGS -lcrypto
|
||||
|
||||
OPTION MEMTYPE unsigned char
|
||||
|
||||
DECLARE result TYPE unsigned char*
|
||||
|
||||
result = SHA256("Rosetta code", 12, 0)
|
||||
|
||||
FOR i = 0 TO SHA256_DIGEST_LENGTH-1
|
||||
PRINT PEEK(result+i) FORMAT "%02x"
|
||||
NEXT
|
||||
|
||||
PRINT
|
||||
Loading…
Add table
Add a link
Reference in a new issue