擅长:python、mysql、java
<p>BCrypt是python中的一个模块,可以使用<code>pip install bcrypt</code>安装。
与BCryptPasswordEncoder()等效的方法需要将bcrypt作为<code>import bcrypt</code>导入,然后执行<code>bcrypt.hashpw(password, bcrypt.gensalt())</code>来加密密码。在</p>
<p>来源:<a href="https://pypi.python.org/pypi/bcrypt/3.1.0" rel="nofollow noreferrer">https://pypi.python.org/pypi/bcrypt/3.1.0</a></p>