Skip to content

How to get the keyID of the failed password when decrypting with rnp_decrypt? #2167

Closed Answered by ni4
shemeshg asked this question in Q&A
Discussion options

You must be logged in to vote

Currently RNP_ERROR_BAD_PASSWORD will be returned if invalid password was specified for all of the recipients. Another possible way is to first run (and fail) rnp_op_verify_execute() to obtain list of recipients, and then continuously ask for password, trying rnp_key_unlock() for the specific recipient.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@shemeshg
Comment options

@ni4
Comment options

ni4 Jan 8, 2024
Maintainer

@shemeshg
Comment options

@ni4
Comment options

ni4 Jan 8, 2024
Maintainer

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