Welcome Guest, Not a member yet? Register   Sign In
Which is safer/faster
#1

(This post was last modified: 02-08-2023, 12:54 AM by rodrigo286.)

Hello friends, which procedure do you believe is more secure and also performs well for encrypting data such as personal documents and other sensitive information?

Remembering that the password i already use password_hash for security.

Today I have three functional methods:
  • AES_ENCRYPT / AES_DECRYPT directly from the CI4 model. ( in use )
  • CI4 Encryption Library
  • PHP Vanilla Sodium Encrypt ( also in use )
I'm looking for a safe method that also makes it easy for me to work with it in the database.

My working model with AES ENCRYPTION:


[Image: jTDAc8R.png]

Result:


[Image: bHGt87F.png]

[Image: p42j7QN.png]

Thanks for help.
Reply
#2

See https://codeigniter.com/user_guide/libra...ption.html
CI4 Encryption Library uses PHP extension OpenSSL or Sodium.
And CodeIgniter’s OpenSSL handler uses the AES-256-CTR cipher.

About AES_ENCRYPT()
See https://dev.mysql.com/doc/refman/8.0/en/...es-encrypt
By default these functions implement AES with a 128-bit key length.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB