Closed lukechilds closed 6 years ago
Apologies, invalid passphrase command was causing weirdness, it looks like it does work:
gpg-enc %
››› cat secret | time gpg \
--symmetric \
--cipher-algo aes256 \
--digest-algo sha256 \
--cert-digest-algo sha256 \
--compress-algo none -z 0 \
--s2k-mode 3 \
--s2k-digest-algo sha256 \
--s2k-count 1 \
--force-mdc \
--quiet --no-greeting \
--batch --passphrase password > secret.gpg
gpg --symmetric --cipher-algo aes256 --digest-algo sha256 --cert-digest-algo 0.19s user 0.00s system 99% cpu 0.195 total
gpg-enc %
››› cat secret | time gpg \
--symmetric \
--cipher-algo aes256 \
--digest-algo sha256 \
--cert-digest-algo sha256 \
--compress-algo none -z 0 \
--s2k-mode 3 \
--s2k-digest-algo sha256 \
--s2k-count 65011712 \
--force-mdc \
--quiet --no-greeting \
--batch --passphrase password > secret.gpg
gpg --symmetric --cipher-algo aes256 --digest-algo sha256 --cert-digest-algo 0.50s user 0.00s system 99% cpu 0.508 total
I don't think the key derivation function works:
Both commands complete basically instantly even though the first one uses a single round of SHA-256 and the second uses 65,011,712. That many rounds of SHA-256 should take a long time.
Or at least that's the case for me: