Encrypt / Decrypt File

I need to encrypt and decrypt files using php. I need other users to use the key to decrypt the file. Encryption should be for rent AES 128. Are there any good articles or tutorials on this? thank

+3
source share
3 answers

There are several libraries, but the most common is probably mcrypt. Fast Google creates many mcrypt tutorials like

http://www.itnewb.com/v/PHP-Encryption-Decryption-Using-the-MCrypt-Library-libmcrypt

+4
source
+4

It’s completely not clear what your goal is. The essential parts of the problem are:

  • Key exchange. How do you securely receive a key from a user?
  • Encryption. How do you ensure key security during data encryption?
  • Problem. You need to clearly indicate what kind of problem you expect from encryption.

Hope this helps you formulate new questions.

0
source

Source: https://habr.com/ru/post/1773410/


All Articles