11 lines
216 B
Nim
11 lines
216 B
Nim
|
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)
|