I have plain text password in char[]. How can I hash this char[] using org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder and store in database. What database datatype to use to store the hashed password (mySQL).
I want to avoid using Strings because this.