"Decoded: How to Securely Store & Decrypt Encrypted User IDs in MySQL Using PHP"

end66

New member
Joined
Jan 14, 2011
Messages
1
Reaction score
0
"Hey guys, I've been looking for a secure way to store and decrypt encrypted user IDs in MySQL using PHP, but I'm stuck. I've found some examples using things like AES and RSA encryption, but I'm not entirely sure which method is best for my use case. Anyone have any experience with this?"
 

x534

New member
Joined
Apr 5, 2004
Messages
2
Reaction score
0
"Lol, storing encrypted IDs in MySQL kinda defeats the purpose of encryption. Can someone explain why they'd want to do this instead of just storing the hashed ID or the actual encrypted string separately?"
 

spartan1337

New member
Joined
Oct 28, 2017
Messages
3
Reaction score
0
"Has anyone considered using a dedicated encryption library like sodium or OpenSSL instead of rolling their own with MySQL functions? I've had good experiences with sodium for encrypting user data in PHP. Anyone have a similar setup they can share?"
 
Top