Eu tentei isso com o comando scrypt
:
scrypt enc -P e.txt e.txt-sc <<< "koko"
Informação:
-P: Always read passphrase from stdin, and do so only once even when encrypting
<<<: Gotten from stdin (redirect stdin input stream)
"koko": passphrase
Fonte:
man scrypt