securefox 0.1.1__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.
File without changes
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: securefox
3
+ Version: 0.1.1
4
+ Summary: A cryptographically secure password generator.
5
+ Author-email: Satish Vishwakarma <Satya9125.dev@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Satya9125.dev/securefox
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Dynamic: license-file
12
+
13
+ # Secure Password Generator
14
+
15
+ Generate cryptographically secure passwords in Python.
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ pip install secure-password-generator
@@ -0,0 +1,8 @@
1
+ # Secure Password Generator
2
+
3
+ Generate cryptographically secure passwords in Python.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install secure-password-generator
@@ -0,0 +1,19 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "securefox"
7
+ version = "0.1.1"
8
+ description = "A cryptographically secure password generator."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ authors = [
12
+ { name = "Satish Vishwakarma", email = "Satya9125.dev@gmail.com" }
13
+ ]
14
+ license = { text = "MIT" }
15
+
16
+ dependencies = []
17
+
18
+ [project.urls]
19
+ Homepage = "https://github.com/Satya9125.dev/securefox"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ from .generator import generate_password
2
+
3
+ __all__ = ["generate_password"]
@@ -0,0 +1,26 @@
1
+ import secrets
2
+ import string
3
+
4
+
5
+ def generate_password(length: int = 12) -> str:
6
+ """
7
+ Generate a cryptographically secure random password.
8
+ Ensures at least one uppercase, lowercase, digit, and special character.
9
+ """
10
+ if length < 4:
11
+ raise ValueError("Password length must be at least 4")
12
+
13
+ char_sets = [
14
+ string.ascii_uppercase,
15
+ string.ascii_lowercase,
16
+ string.digits,
17
+ string.punctuation,
18
+ ]
19
+
20
+ password = [secrets.choice(char_set) for char_set in char_sets]
21
+ all_chars = "".join(char_sets)
22
+
23
+ password += [secrets.choice(all_chars) for _ in range(length - 4)]
24
+ secrets.SystemRandom().shuffle(password)
25
+
26
+ return "".join(password)
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: securefox
3
+ Version: 0.1.1
4
+ Summary: A cryptographically secure password generator.
5
+ Author-email: Satish Vishwakarma <Satya9125.dev@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Satya9125.dev/securefox
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Dynamic: license-file
12
+
13
+ # Secure Password Generator
14
+
15
+ Generate cryptographically secure passwords in Python.
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ pip install secure-password-generator
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/password_generator/__init__.py
5
+ src/password_generator/generator.py
6
+ src/securefox.egg-info/PKG-INFO
7
+ src/securefox.egg-info/SOURCES.txt
8
+ src/securefox.egg-info/dependency_links.txt
9
+ src/securefox.egg-info/top_level.txt
10
+ tests/test_generator.py
@@ -0,0 +1 @@
1
+ password_generator
File without changes