From: Jean Privat Date: Wed, 10 Jun 2015 14:29:07 +0000 (-0400) Subject: rosetta_code: sha1 X-Git-Tag: v0.7.6~49^2 X-Git-Url: http://nitlanguage.org rosetta_code: sha1 Signed-off-by: Jean Privat --- diff --git a/examples/rosettacode/sha_1.nit b/examples/rosettacode/sha_1.nit new file mode 100644 index 0000000..2eaf471 --- /dev/null +++ b/examples/rosettacode/sha_1.nit @@ -0,0 +1,12 @@ +#!/usr/bin/env nit +# +# This file is part of NIT ( http://www.nitlanguage.org ). +# This program is public domain + +# Task: SHA-1 +# SEE: +module sha_1 + +import sha1 + +print "Rosetta Code".sha1_to_s diff --git a/tests/sav/sha_1.res b/tests/sav/sha_1.res new file mode 100644 index 0000000..0d58024 --- /dev/null +++ b/tests/sav/sha_1.res @@ -0,0 +1 @@ +48C98F7E5A6E736D790AB740DFC3F51A61ABE2B5