rosetta_code: sha1
authorJean Privat <jean@pryen.org>
Wed, 10 Jun 2015 14:29:07 +0000 (10:29 -0400)
committerJean Privat <jean@pryen.org>
Wed, 10 Jun 2015 14:29:07 +0000 (10:29 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

examples/rosettacode/sha_1.nit [new file with mode: 0644]
tests/sav/sha_1.res [new file with mode: 0644]

diff --git a/examples/rosettacode/sha_1.nit b/examples/rosettacode/sha_1.nit
new file mode 100644 (file)
index 0000000..2eaf471
--- /dev/null
@@ -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: <http://rosettacode.org/wiki/SHA-1>
+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 (file)
index 0000000..0d58024
--- /dev/null
@@ -0,0 +1 @@
+48C98F7E5A6E736D790AB740DFC3F51A61ABE2B5