Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Illegal base64 letter at input byte 4 #67

Open
@GuilhermeStrice

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /