LoginException: Login failed: Security Exception

﹥>﹥吖頭↗ 提交于 2019-11-27 22:26:30
palacsint

Just a guess: I'd try with jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg= as a hash for password admin.

final MessageDigest messageDigest = java.security.MessageDigest.
        getInstance("SHA-256");
final byte bin[] = messageDigest.digest(("admin").getBytes());
System.out.println(Base64.encodeBase64String(bin));

(Base64 from Apache Commons Codec)


Another idea: Try with hash 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 (password: admin) and HEX encoding. It was generated with:

final String hash = DigestUtils.sha256Hex("admin");
System.out.println(hash);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!