Skip to content

Examples in README contain errors #55

@Karting06

Description

@Karting06

Hi,

For your information, when migrating to version 3, I noticed that the README is wrong.

It should be Utf8 instead of UTF8 (same for PKCS7 that should be Pkcs7):

The following doesn't work:

import { Base64, Hex, UTF8 } from 'crypto-es';
import { AES, CBC, PKCS7 } from 'crypto-es';

This works:

import { Base64, Hex, Utf8 } from 'crypto-es';
import { AES, CBC, Pkcs7 } from 'crypto-es';

Which makes sense since Utf8 is exported here.

Thanks for the package,

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