Skip to content

Encryption的algorithm作用是? #17

Open

Description

@wuyaoqing

if (StrUtil.isEmpty(this.algorithm)) {
this.mode = "AES";
}

algorithm为空mode就是AES,下面就报错了,为啥需要这个?

if (!"ECB".equals(this.mode) && !"CBC".equals(this.mode)) {
throw new BarkException("AES Mode is invalid, only support ECB or CBC");
}

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions