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.

encrypt is not equal to source data #27

@wenwan1

Description

@wenwan1

const 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])
const iv = new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])
const asApi = await aes256();
asApi.init(key,iv,'CTR');
const data = new Uint8Array([23,123,123,122,122,34]);
const encrypt = asApi.encrypt(data)
console.log(encrypt);
console.time('start');
const decryptDa = asApi.decrypt(encrypt);
console.log(decryptDa);

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