summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/crypt4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/crypt b/bin/crypt
index fbd8817..fcc84aa 100755
--- a/bin/crypt
+++ b/bin/crypt
@@ -16,14 +16,14 @@ encrypt() {
$(ssh-keygen -e -f ~/.ssh/id_rsa.pub -m PKCS8)
EOF
- openssl aes-256-cbc -pbkdf2 -pass file:/dev/fd/3 3<<- EOF
+ openssl aes-256-cbc -pbkdf2 -iter 10000 -saltlen 8 -pass file:/dev/fd/3 3<<- EOF
$1
EOF
}
# Decrypt stdin to stdout.
decrypt() {
- openssl aes-256-cbc -d -pbkdf2 -pass file:/dev/fd/3 3<<- EOF
+ openssl aes-256-cbc -d -pbkdf2 -iter 10000 -saltlen 8 -pass file:/dev/fd/3 3<<- EOF
$(dd ibs=256 count=1 iflag=direct status=none |
openssl pkeyutl -decrypt -inkey ~/.ssh/id_rsa)
EOF