Skip to content

Encoding Uint8Array to message string #49

Open
@elliotsayes

Description

@elliotsayes

Hi, I'm having a little trouble converting my data to use in the RSA.signPSS function. I've worked out that the signature parameter should be a base64 string, but I can't work out how to encode the message parameter when trying to sign arbitrary Uint8Array data. I've tried Buffer.from(messageBytes).toString() and B64js.fromByteArray(messageBytes) but neither seem to work.

TL;DR Could someone help me with handling signing of Uint8Array messages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions