Skip to content

bug #6

Open
Open

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

Activity

  1. BullyBoo commented on Mar 12, 2018

    @BullyBoo
    Owner

    Thank you for your comment.
    I will fix it in the nearest time.
    It happens when result of byte array is encode with base64 with flag DEFAULT.

  2. jrcacd commented on Sep 11, 2019

    @jrcacd

    When can we have a fix on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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