workshit/src/crypt.nim

11 lines
216 B
Nim
Raw Normal View History

2015-06-03 23:01:51 +00:00
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)