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

Unable to encrypt or decrypt #109

Open
Matthew-Oluwajuwon opened this issue Aug 3, 2024 · 0 comments
Open

Unable to encrypt or decrypt #109

Matthew-Oluwajuwon opened this issue Aug 3, 2024 · 0 comments

Comments

@Matthew-Oluwajuwon
Copy link

Getting the issue too

ERROR Test failed: [TypeError: Cannot read property 'install' of null]

using version 2.7.3

const testOpenPGP = async () => {
try {
if (OpenPGP.encrypt) {
console.log("Encrypt method is available.");
const result = await OpenPGP.encrypt('Test message', '-----BEGIN PGP PUBLIC KEY BLOCK-----...');
console.log('Encryption result:', result);
} else {
console.error('Encrypt method is not available.');
}
} catch (error) {
console.error('Test failed:', error);
}
};

testOpenPGP();

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