Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
4
Task/SHA-1/Prolog/sha-1-1.pro
Normal file
4
Task/SHA-1/Prolog/sha-1-1.pro
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
:- use_module(library(sha)).
|
||||
sha_hex(Str,Hex):-
|
||||
sha_hash(Str, Hash, []),
|
||||
hash_atom(Hash, Hex).
|
||||
2
Task/SHA-1/Prolog/sha-1-2.pro
Normal file
2
Task/SHA-1/Prolog/sha-1-2.pro
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
?- sha_hex("Rosetta Code",Hex).
|
||||
Hex = '48c98f7e5a6e736d790ab740dfc3f51a61abe2b5'.
|
||||
Loading…
Add table
Add a link
Reference in a new issue