Skip to content

Illegal base64 letter at input byte 4 #67

@GuilhermeStrice

Description

@GuilhermeStrice

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