top of page
undraw_newspaper_k72w.png

1 minute read

Q. I have a spring boot web application without registration page or allowing users to register. I'm manually creating passwords using another web spring application which ones gives me encoded password on request. Using the below link to generate the encoded password: 

​

http://www.baeldung.com/spring-security-registration-password-encoding-bcrypt

​

But i was researching to find an alternate simple python equivalent,so i can use it on the cli easily.?

A.  I was facing the same problem, but the following worked for me:

​

bcrypt.gensalt(rounds = 10, prefix=b"2a")

​

This seems to be in sync with the bean BCryptPasswordEncoder in SpringBoot :)

​

**Sourced from a question that we answered on Stack Overflow

57e7acfb-6b59-4474-98ed-57c01c016bef_200
bottom of page