Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DecryptFile method is not returning the plain text #19

Open
udureja opened this issue Aug 28, 2020 · 0 comments
Open

DecryptFile method is not returning the plain text #19

udureja opened this issue Aug 28, 2020 · 0 comments

Comments

@udureja
Copy link

udureja commented Aug 28, 2020

Can you figure out anything that i am missing in my code.
Here is my code:

`
// to generate keys
using (ChoPGPEncryptDecrypt pgp = new ChoPGPEncryptDecrypt())
pgp.GenerateKey(@"c:\umesh\chopgp\keyPublic.asc", @"c:\umesh\chopgp\keyPrivate.asc", "[email protected]", "password");

        // to encrpyt
        using (ChoPGPEncryptDecrypt pgp = new ChoPGPEncryptDecrypt())
        {
            pgp.EncryptFile(@"c:\umesh\chopgp\MyTest.txt", @"c:\umesh\chopgp\MyTestEncrypted.txt", @"c:\umesh\chopgp\keyPublic.asc");
        }

        // to decrypt
        using (ChoPGPEncryptDecrypt pgp = new ChoPGPEncryptDecrypt())
        {
            pgp.DecryptFile(@"c:\umesh\chopgp\MyTestEncrypted.txt", @"c:\umesh\chopgp\MyTestDecrypted.txt", @"c:\umesh\chopgp\keyPrivate.asc", "password");
        } 

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant