我有一个拥有用户表的MYSQL数据库。我想为新用户插入一个新行,但密码是Base 64加密的。如何插入带加密密码的新行?
尝试了这个问题:
insert INTO users
(name, regId, address, city, created_at, modify_at, image, mobile, status, user_type, email, password)
VALUES("New User","","","","2016-11-11 17:08:17","2016-11-11 17:08:17","","123456789",1,3,"newuser@gmail.com","pC9bx7sXEbBnBwmXBuWFiHCjPezaUFl4WsgEYuaRDKc");
该行已插入但当我尝试使用此用户登录时,会收到密码错误。