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

Transform key and iv bytes in base64/Hex for another languages decript #104

Open
silvioangels opened this issue Sep 7, 2020 · 1 comment

Comments

@silvioangels
Copy link

Guys,
I need to know how can i transform key and iv bytes in base64/Hex for another languages decript. All the tests i did it to transform not work in decript, only works here in js. Someone know how to do it?

@webdevelopland
Copy link

Like this for example:

function uint8ArrayToBase64(binary: Uint8Array): string {
  return btoa(new Uint8Array(binary).reduce((data, byte) => {
    return data + String.fromCharCode(byte);
  }, ''));
}

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

2 participants