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

Illegal base64 letter at input byte 4 #67

Open
GuilhermeStrice opened this issue Mar 7, 2024 · 0 comments
Open

Illegal base64 letter at input byte 4 #67

GuilhermeStrice opened this issue Mar 7, 2024 · 0 comments

Comments

@GuilhermeStrice
Copy link

What i want to do is pretty simple

var keys = await RSA.generate(2048);
_ourPrivateKey = keys.privateKey;
_ourPublicKey = keys.publicKey;

// Application 1
var enc = await RSA.encryptOAEP(message, "yes", Hash.SHA256, _ourPublicKey);

// at this point the message has arrived on Application 2
var dec = await RSA.decryptOAEP(message, "yes", Hash.SHA256, _ourPrivateKey);

But it throws RSAException - Illegal base64 letter at input byte 4

The public keys being negotiated between the applications are correct

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