At this time the password is encrypted with MD5. This is not enough.
It is suggested to add a salt, for example.
File:
Repository/main/plugin-repositoryapp/src/org/ametys/plugins/repositoryapp/authentificatino/ AdminRepositoryAuthentification.java:108
Example of resolution
String salt = "LongStringForExtraSecurity@#$!%^&*(*)1234567890"; String unecryptedPassword = "Secret123"; MessageDigest messageDigest=null; try { messageDigest = MessageDigest.getInstance("SHA"); messageDigest.update((unecryptedPassword+salt).getBytes()); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); }
- Référence
-
RUNTIME-795 Enhance SQL passwords protection
- Closed