While converting some existing code to the bcrypt API, I ran in to a (very) minor pain-point.
When working with some APIs it is natural for the password to be a char[] (e.g. passed to javax.crypto.spec.PBEKeySpec ctor) and the bcryptHash to be a byte[] (e.g. read fully from a java.io.DataInputStream).
This is probably an advanced use-case, but it would be nice to have Bcrypt.Verifyer.verify(char[] password, byte[] bcryptHash).
While converting some existing code to the
bcryptAPI, I ran in to a (very) minor pain-point.When working with some APIs it is natural for the
passwordto be achar[](e.g. passed tojavax.crypto.spec.PBEKeySpecctor) and thebcryptHashto be abyte[](e.g. read fully from ajava.io.DataInputStream).This is probably an advanced use-case, but it would be nice to have
Bcrypt.Verifyer.verify(char[] password, byte[] bcryptHash).