Skip to content

java.security.spec.InvalidParameterSpecException: IV length not 16[4, 8] bytes long #22

@xlorne

Description

@xlorne
        AES aes = new AES(key, iv);
        String content = "hello world";
        String encrypt = Base64Utils.encodeToString(aes.encrypt(content.getBytes()));
        System.out.println("encrypt:" + encrypt);

when load AES by local keys, then throws InvalidParameterSpecException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions