Skip to content

使用 Base64 encode 时可以再优化下吗 #171

@DysaniazzZ

Description

@DysaniazzZ

目前 Base64 的 flag 是 default:

String base64Key = new String(Base64.encode(key, Base64.DEFAULT));

这样会导致出现无用的填充 = 和换行 \n,如果使用 Base64.NO_PADDING | Base64.NO_WRAP,则会使最终的结果看起来更优雅一些。

如果需要的话,我可以提一个 pr

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