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

Each encrypt() call returns different results #3

@KaMeHb-UA

Description

@KaMeHb-UA

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);

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