I set up some demo code what I've done so far in a few days work (learning both Vert.x and Kotlin plus using Intellij ;-)) in [1] which needs a lot of testing as well as documentation. I've used Shiro, with a simple properties file but as of now not even hashed at all. So I read about storing passwords safely, but often times it seems even SHA1 is still being used by frameworks. So basically I'd love to store which hashing algorithm has been used along with the hashed passwords, such that I can switch anytime :-)
Kind regards
Johannes
[1] https://github.com/sirixdb/sirix/tree/master/bundles/sirix-rest-api
jdbcAuth.setHashStrategy(JDBCHashStrategy.createPBKDF2(vertx));
Kind regards
| // encode (the arguments are: "algorithm", "options", "salt value", "password") |
| String hash = strategy.hash("pbkdf2", null, "random-salt", "SuperSecret$!"); |
| // verify (hash is the string received by your app) |
| boolean valid = strategy.verify(hash, "SuperSecret$!"); |
| |