Function to test passphrase

Will McDonald will at cs.wisc.edu
Thu Feb 2 19:58:24 CET 2006


Hello,
I'd like to write a little program that would simply test whether a given
passphrase is correct or not for a private key, then return true or false.
I've looked at the sources, but it wasn't immediately obvious to me what gnupg
functions to start with. Obiously there are a few steps to this (loading the
private key, testing the passphrase)...

Can someone point me to which functions I should be looking at? Also, any
tips?

Thanks,
-will

-- 
:wq



More information about the Gnupg-devel mailing list