Creating a table with password field in mysql database.
mysql>create table contact
(Name varchar(20),
password char(41));
mysql>insert into contact values('john',password('12345'));
mysql>select * from contact;
you will get this result
john *23AE809DDACAF96AF0FD78ED04B6A265E05AA257
Password is encrypted now no user can see it.
Comments
Post a Comment