| | |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | String s = encryptPassword("c4728bb7e093240deb97ccad908c3a26"); |
| | | String s = encryptPassword("ad23a8ac3c902145ffe05df05812b1f0"); |
| | | System.err.println(s); |
| | | |
| | | System.err.println(matchesPassword("c4728bb7e093240deb97ccad908c3a26","$2a$10$FwoB7WcYuRMH1lyrSX8g2ed35MP6rpI4Qs3ITH24mEc9vV1D2x8Xq")); |
| | | System.err.println(matchesPassword("6ac9d3a5c7639060425fadd6db3d305e","$2a$10$M.L9orN4p8y6aLvBhOm9hevAmi0YXAPuWIHZrAyEAKGW3x8B4/0d.")); |
| | | } |
| | | } |
| | |
| | | user.setObjectId(shopId); |
| | | user.setAppUserId(appUser.getId()); |
| | | String s = MD5Generator.generateMD5(phone.substring(5)); |
| | | user.setPassword(SecurityUtils.encryptPassword(s)); |
| | | user.setPassword(s); |
| | | user.setCreateTime(new Date()); |
| | | Long userId = sysUserClient.saveShopUser(user).getData(); |
| | | |