This commit is contained in:
Christine Dodrill 2015-06-03 16:01:51 -07:00
commit c9a04fcd66
1 changed files with 10 additions and 0 deletions

10
crypt.nim Normal file
View File

@ -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)