Skip to content

bug #6

@arronli

Description

@arronli

Hi BullyBoo,
this is my test code

String data = "abc";
String key = "key 4 test";
String iv = "vector 4 test";
String encrypt = Encoder.BuilderAES()
.keySize(AES.Key.SIZE_128)
.message(data)
.method(AES.Method.AES_CBC_PKCS5PADDING)
.key(key)
.iVector(iv).encrypt();
System.out.println(encrypt.length());

after trim(), the length of encrypt will reduce 1,
it‘s a newline character, i do not know if it is added purposeful,
if not maybe this is a bug

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