Skip to content

解密中去除填充的算法有问题 #14

@baoyongzhang

Description

@baoyongzhang

image
这个算法有问题,这里应该是把后面填充的内容去掉吧,不足16填充几个几,这里忽略 0x0a,0A对应ascii码里的 \n ,这样的话,如果正好差 10 位不足 16,那就会填充 10 个 10 ,10 就是 0x0A,解密之后的原文后面会出现 10个 \n。

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