I use shiro in application for the authenticate. I use hashed password with a salt and I store them in my database like this :
private User createUserWithHas
I change my type for the save of my salt. Now I'm using a byte[] instead of a String.
ByteSource salt = randomNumberGenerator.nextBytes(32); byte[] byteTabSalt = salt.getBytes();
And I stock the byteTabSalt in my database.