Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

aes_encrypt insert into table

my query is not work

INSERT INTO rebuilder (id_utente, pwd)VALUES('75693',AES_ENCRYPT('password','set'))

I haven't errors but the pwd value in DB table is NULL.

Ideas? Tnx Stefania

like image 458
Beb Pratza Ballus Avatar asked Apr 23 '26 08:04

Beb Pratza Ballus


1 Answers

see SQLFIDDLE

create table rebuilder (
  id_utente int,
  pwd varbinary(200) 
);

-- data
insert into rebuilder (id_utente, pwd) 
values (75693,aes_encrypt('password','set'));

enter image description here

see SQLFIDDLE

like image 57
MrSimpleMind Avatar answered Apr 24 '26 23:04

MrSimpleMind



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!