Hi I encrypted the passwords in MySQL by using this code and it worked but when used the passwords to login with a PHP website it didnt work. Could someone tell me what i am doin wrong?
INSERT INTO `customer` (`custID`, `surname`, `forename`, `address`, `password`, `gender`, `birthdate`)
VALUES
(1111, 'Dhillon', 'Sharanjit', 'Newcastle', des_encrypt('Sh aDhil','somekey '), 'F', '1985-03-07'),
(1112, 'Smith', 'Michael', 'London', des_encrypt('Mi cSmit','somekey '), 'M', '1972-05-28');
INSERT INTO `customer` (`custID`, `surname`, `forename`, `address`, `password`, `gender`, `birthdate`)
VALUES
(1111, 'Dhillon', 'Sharanjit', 'Newcastle', des_encrypt('Sh aDhil','somekey '), 'F', '1985-03-07'),
(1112, 'Smith', 'Michael', 'London', des_encrypt('Mi cSmit','somekey '), 'M', '1972-05-28');
Comment