Encrypting (large) files in PHP with openSSL

前端 未结 4 1721
再見小時候
再見小時候 2020-12-11 06:30

I\'m trying to encrypt (big) files in PHP using AES and have looked into using Mcrypt and OpenSSL, the problem is all solutions I have found so far only encrypt strings, and

4条回答
  •  被撕碎了的回忆
    2020-12-11 06:34

    I have published two functions which encrypt and decrypt even large files with the help of openssl_encrypt() using the AES-128-CBC algorithm.

    Please refer to this openssl_encrypt().

提交回复
热议问题