05 的十六进制是什么

问题描述 投票:0回答:0

我正在使用 Node-Forge 库进行 AES 加密。我知道 AES 需要填充到块大小的上限。 Node-Forge 使用十六进制代码 05 进行填充。这个代码是什么?我应该如何取消填充该消息?

现在我正在做这样的事情:

Encrypt message "hello world"
Output: e20bf1586a94082707b8dfcf26d70ea5

Decrypted output: 68656c6c6f20776f726c640505050505
Output.replaceAll("05", "")
New output: 68656c6c6f20776f726c64

68656c6c6f20776f726c64 decoded is "hello world"
typescript hex aes node-forge
© www.soinside.com 2019 - 2024. All rights reserved.