Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须使用 AES 256 、 CBC 和无填充进行加密。我有一个执行简单 AES256 的代码,但要求不同。
我有一个 JSON 字符串,我需要使用 AES256/CBC/Nopadding 将其传递给服务器。
任何帮助将不胜感激
您可以使用 CommonCrypto 来实现这一点。在 CCCryptorCreate 中有 CCOptions 参数,您应该在其中传递 0(而不是 PKCS7Padding 常量)。