summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-05-02 15:28:48 +0200
committerMarc Vertes <mvertes@free.fr>2025-05-02 15:28:48 +0200
commitf3c7f321c2aed58c0146dda99467b36d9deb0d61 (patch)
treef1d01e9d3f43c45543e79304826933882f72a9a2 /bin
parentfcfd7f4d544206c5a64d1e57b3933e7782843ed7 (diff)
fix crypt
Diffstat (limited to 'bin')
-rwxr-xr-xbin/crypt4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/crypt b/bin/crypt
index 64afc42..4728b42 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