From c9a04fcd66b3c12b12cc5c8a89ee7efcd3bedc7a Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 3 Jun 2015 16:01:51 -0700 Subject: [PATCH] --- crypt.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 crypt.nim diff --git a/crypt.nim b/crypt.nim new file mode 100644 index 0000000..d65f539 --- /dev/null +++ b/crypt.nim @@ -0,0 +1,10 @@ +import posix + +{.passL: "-lcrypt".} + +echo "What would you like to encrypt? " +var password: string = readLine stdin +echo "What is the salt? " +var salt: string = readLine stdin + +echo "result: " & $crypt(password, salt)