Skip to content

Symmetric decryption slower than with private key #1481

Answered by twiss
fi4sk0 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello 👋 Password-based encryption has a step where the key is derived from the password, which is intentionally slow, in order to make it harder for attackers to guess the password via a brute-force attack. With asymmetric encryption, this concern doesn't apply as the entropy of the key itself should already be sufficient. If you're very confident that the password you're using has sufficient entropy as well (e.g. it's a randomly generated string of sufficient length, and not something provided by a user) then you can lower openpgp.config.s2kIterationCountByte to lower this protection and increase the performance.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@twiss
Comment options

@steida
Comment options

@twiss
Comment options

@steida
Comment options

@twiss
Comment options

Answer selected by fi4sk0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants