普贤教程 › 包参考
bcrypt 包
bcrypt
bcrypt64 字母表
| 项 | 值 |
|---|---|
| 包名 | bcrypt |
| 版本 | 0.2.0 |
| 可用版本 | 0.1.0 / 0.2.0 |
| 入口 | bcrypt.px |
| 分类 | 认证与安全 |
| 文件数 / 行数 | 1 / 482 |
安装与引入
bash
pxpkg init # 首次 pxpkg add bcrypt@0.2.0 pxpkg install
px
import bcrypt所属分类教程:认证与安全
其余 21 个 def(内部与辅助,可直接调用但不属稳定接口)
| 函数 | 参数 |
|---|---|
bc_hexv | c |
bc_hexword | h |
bc_new_state | |
bc_encipher | st, l, r |
bc_expand | st, key_words |
bc_eks_salted | st, key_words, salt_words |
bc_key_words | data, size = 18 |
bc64_encode | data |
bc64_idx | c |
bc64_decode | s |
bc_raw | password, salt16, cost |
bc_hash | password, cost, salt22 |
bc_verify | password, hash_str |
bc_gensalt | cost |
bc_cost | hash_str |
bc_salt | hash_str |
bc_hash_body | hash_str |
bc_version | hash_str |
bc_info | hash_str |
bc_needs_rehash | hash_str, target_cost |
bc_hash_with | password, cost |
包内说明(源码头注释)
text
bcrypt64 字母表