I searched through the Documentation for Spring 5 Security but I could not find a reference to the BCrypt $2y$ version prefix anywhere.
When looking through the source code, though, I found one reference in the Javadoc of the PasswordEncoder:
can optionally supply a "version" ($2a, $2b, $2y)
Can anyone give me some consensus? Is it possible to use the $2y$ bcrypt version prefix when using Spring 5 Security?
It depends on what version you're using, the commit in which this feature introduced was on Oct 18, 2018. It has the tag
5.2.0.M1which means that's the release this commit will be introduced in, the official docs of that version now specify this feature exists:Before version
5.2.0.M1this feature did not exist, there's no official release yet of this version, only snapshots (5.2.0.M1was released on Jan 16, 2019).This version (or newer) is what you'll have to use if you want to use this feature, until an official release is made.