secrets-plus 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/PKG-INFO +11 -11
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/README.md +10 -10
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/secrets_plus.egg-info/PKG-INFO +11 -11
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/secrets_plus.egg-info/SOURCES.txt +0 -1
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/setup.py +1 -1
- secrets_plus-0.2.0/pyproject.toml +0 -3
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/secplus.c +0 -0
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/secrets_plus.egg-info/dependency_links.txt +0 -0
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/secrets_plus.egg-info/not-zip-safe +0 -0
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/secrets_plus.egg-info/top_level.txt +0 -0
- {secrets_plus-0.2.0 → secrets_plus-0.3.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: secrets-plus
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Windows BCrypt 加密安全随机数C扩展,与secrets接口完全一致
|
|
5
5
|
Author: Tevend_geven
|
|
6
6
|
Author-email: yanxiao_feng2013@163.com
|
|
@@ -28,7 +28,7 @@ Dynamic: platform
|
|
|
28
28
|
Dynamic: requires-python
|
|
29
29
|
Dynamic: summary
|
|
30
30
|
|
|
31
|
-
#
|
|
31
|
+
# secrets-plus
|
|
32
32
|
Windows平台专用高性能C扩展,基于系统原生 **BCrypt API** 实现加密安全随机数,完整复刻Python标准库 `secrets` 常用接口,性能优于原生Python实现。
|
|
33
33
|
|
|
34
34
|
## 平台限制
|
|
@@ -47,26 +47,26 @@ Linux / macOS 无系统BCrypt依赖库,无法编译、安装。
|
|
|
47
47
|
|
|
48
48
|
## 安装方式
|
|
49
49
|
```bash
|
|
50
|
-
pip install
|
|
50
|
+
pip install secrets-plus
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
## 快速使用
|
|
54
54
|
```python
|
|
55
|
-
import
|
|
55
|
+
import secplus
|
|
56
56
|
|
|
57
57
|
# 生成各类安全令牌
|
|
58
|
-
print(
|
|
59
|
-
print(
|
|
60
|
-
print(
|
|
58
|
+
print(secplus.token_urlsafe())
|
|
59
|
+
print(secplus.token_hex(16))
|
|
60
|
+
print(secplus.token_bytes(32))
|
|
61
61
|
|
|
62
62
|
# 随机数工具
|
|
63
|
-
print(
|
|
64
|
-
print(
|
|
63
|
+
print(secplus.randbelow(1000))
|
|
64
|
+
print(secplus.randbits(12))
|
|
65
65
|
|
|
66
66
|
# 序列操作
|
|
67
67
|
lst = [1,2,3,4,5]
|
|
68
|
-
print(
|
|
69
|
-
|
|
68
|
+
print(secplus.choice(lst))
|
|
69
|
+
secplus.shuffle(lst)
|
|
70
70
|
print(lst)
|
|
71
71
|
```
|
|
72
72
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# secrets-plus
|
|
2
2
|
Windows平台专用高性能C扩展,基于系统原生 **BCrypt API** 实现加密安全随机数,完整复刻Python标准库 `secrets` 常用接口,性能优于原生Python实现。
|
|
3
3
|
|
|
4
4
|
## 平台限制
|
|
@@ -17,26 +17,26 @@ Linux / macOS 无系统BCrypt依赖库,无法编译、安装。
|
|
|
17
17
|
|
|
18
18
|
## 安装方式
|
|
19
19
|
```bash
|
|
20
|
-
pip install
|
|
20
|
+
pip install secrets-plus
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## 快速使用
|
|
24
24
|
```python
|
|
25
|
-
import
|
|
25
|
+
import secplus
|
|
26
26
|
|
|
27
27
|
# 生成各类安全令牌
|
|
28
|
-
print(
|
|
29
|
-
print(
|
|
30
|
-
print(
|
|
28
|
+
print(secplus.token_urlsafe())
|
|
29
|
+
print(secplus.token_hex(16))
|
|
30
|
+
print(secplus.token_bytes(32))
|
|
31
31
|
|
|
32
32
|
# 随机数工具
|
|
33
|
-
print(
|
|
34
|
-
print(
|
|
33
|
+
print(secplus.randbelow(1000))
|
|
34
|
+
print(secplus.randbits(12))
|
|
35
35
|
|
|
36
36
|
# 序列操作
|
|
37
37
|
lst = [1,2,3,4,5]
|
|
38
|
-
print(
|
|
39
|
-
|
|
38
|
+
print(secplus.choice(lst))
|
|
39
|
+
secplus.shuffle(lst)
|
|
40
40
|
print(lst)
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: secrets-plus
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Windows BCrypt 加密安全随机数C扩展,与secrets接口完全一致
|
|
5
5
|
Author: Tevend_geven
|
|
6
6
|
Author-email: yanxiao_feng2013@163.com
|
|
@@ -28,7 +28,7 @@ Dynamic: platform
|
|
|
28
28
|
Dynamic: requires-python
|
|
29
29
|
Dynamic: summary
|
|
30
30
|
|
|
31
|
-
#
|
|
31
|
+
# secrets-plus
|
|
32
32
|
Windows平台专用高性能C扩展,基于系统原生 **BCrypt API** 实现加密安全随机数,完整复刻Python标准库 `secrets` 常用接口,性能优于原生Python实现。
|
|
33
33
|
|
|
34
34
|
## 平台限制
|
|
@@ -47,26 +47,26 @@ Linux / macOS 无系统BCrypt依赖库,无法编译、安装。
|
|
|
47
47
|
|
|
48
48
|
## 安装方式
|
|
49
49
|
```bash
|
|
50
|
-
pip install
|
|
50
|
+
pip install secrets-plus
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
## 快速使用
|
|
54
54
|
```python
|
|
55
|
-
import
|
|
55
|
+
import secplus
|
|
56
56
|
|
|
57
57
|
# 生成各类安全令牌
|
|
58
|
-
print(
|
|
59
|
-
print(
|
|
60
|
-
print(
|
|
58
|
+
print(secplus.token_urlsafe())
|
|
59
|
+
print(secplus.token_hex(16))
|
|
60
|
+
print(secplus.token_bytes(32))
|
|
61
61
|
|
|
62
62
|
# 随机数工具
|
|
63
|
-
print(
|
|
64
|
-
print(
|
|
63
|
+
print(secplus.randbelow(1000))
|
|
64
|
+
print(secplus.randbits(12))
|
|
65
65
|
|
|
66
66
|
# 序列操作
|
|
67
67
|
lst = [1,2,3,4,5]
|
|
68
|
-
print(
|
|
69
|
-
|
|
68
|
+
print(secplus.choice(lst))
|
|
69
|
+
secplus.shuffle(lst)
|
|
70
70
|
print(lst)
|
|
71
71
|
```
|
|
72
72
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|