简体   繁体   English

如何在swift 3的ios中使用commoncrypto加密大文件?

[英]How to encrypt large size files with commoncrypto in ios in swift 3?

I am working on aes 128 encryption and decryption.我正在研究 aes 128 加密和解密。 I can encrypt smaller size files with commoncrypto.我可以使用 commoncrypto 加密较小的文件。 But I am not finding a proper solution to handle large file size with commoncrypto aes encryption.但是我没有找到合适的解决方案来处理使用 commoncrypto aes 加密的大文件。 please help me.请帮我。 Thanks for the help in advance.我在这里先向您的帮助表示感谢。

Use file streaming with the Common Crypto functions: CCCryptorCreateWithMode , CCCryptorUpdate , CCCryptorFinal and CCCryptorRelease .将文件流与 Common Crypto 函数一起使用: CCCryptorCreateWithModeCCCryptorUpdateCCCryptorFinalCCCryptorRelease

Or see RNCryptor Incremental Usage .或查看RNCryptor 增量使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM