Closed Nisgrak closed 4 years ago
Hi @Nisgrak, you need a secret that's 256 bytes :) "example"
isn't
Buffer.from('example').byteLength
// 7
Okey, I add chars to the key then I have 256 bytes, but the error is the same.
Buffer.from('exampleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee').byteLength;
// 256
🤦♂ sorry, 32 bytes, 256 bits. I fixed the error message in 1.0.2
Hi!
I try to encrypt a payload with V2, I want to encrypt with key 'example', how can make it work?
Always I give the error
Thanks and nice work 😄