Problem with AskPassphrase

Sep 24, 2013 at 2:34 PM
Edited Sep 24, 2013 at 2:34 PM
I have a problem with the using a passphrase in GpgApi. My password method returns a SecureString with the password and the value of "m.Value" in GpgInterface.WritePassword seems to be right but I get the error that the passphrase is wrong and my password method will be called another time.

I have tested to call gpg direct via cmd to check if there is a bug on gpg-side but this command works without problems: gpg --status-fd=1 --command-fd=0 --no-verbose --no-greeting --no-secmem-warning --no-tty --display-charset utf8 --output "C:\Users\Jan...\something.plain" --decrypt "c:\users...\something.encrypted"

Can someone help me?