Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. INSERT INTO users (username, password) VALUES ('root', AES_ENCRYPT('somepassword', 'key12346123'));
  2.  
  3. SELECT AES_DECRYPT(password, 'key12346123') FROM users WHERE username = 'root';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement