-1

Is storing emails in databases encrypted using encrypt() function in php secure ? If yes then how can i decrypt it if not then what's a better idea ? example : crypt() function

user1477731
  • 13
  • 2
  • 9

2 Answers2

1

The best you're going to get is with a Rijndael encryption. What you're doing is hashing which isn't reversible.

Check this out for AES encryption in PHP:

AES-256 encryption in PHP

Community
  • 1
  • 1
Prash
  • 1,915
  • 3
  • 20
  • 32
0

A good option to look at is PGP

You can find more info about this by clicking here

pzirkind
  • 2,338
  • 2
  • 20
  • 25