Skip to content

Encryption的algorithm作用是? #17

@wuyaoqing

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");
}

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