code_junkie

MySQL encrypted columns

Nov 11th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. INSERT INTO secure_table VALUES (
  2. 1,
  3. AES_ENCRYPT(
  4. 'plain text data',
  5. CONCAT(@application_password, @user_password))
  6. );
Add Comment
Please, Sign In to add comment