Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Each encrypt() call returns different results #3

Open
KaMeHb-UA opened this issue May 24, 2019 · 2 comments
Open

Each encrypt() call returns different results #3

KaMeHb-UA opened this issue May 24, 2019 · 2 comments

Comments

@KaMeHb-UA
Copy link

KaMeHb-UA commented May 24, 2019

Just run the folllowing snippet:

const aes = await window['aes-wasm'].aes256(),
    key = new Uint8Array([48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 48, 49]),
    iv = new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]),
    results = [];

aes.init(key, iv);
for(var i = 0; i < 5; i++) results.push(aes.encrypt(new Uint8Array([0, 1, 2])));
console.log(results);
@mathe42
Copy link

mathe42 commented Sep 28, 2020

@KaMeHb-UA Could you resolve this or found an other solution?

@KaMeHb-UA
Copy link
Author

@mathe42, sadly, I don't

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants