Spaces:
Sleeping
Sleeping
Commit
·
1f0c9b2
1
Parent(s):
ae4010a
Upload 2 files
Browse files- app.py +24 -0
- requirements.txt +50 -0
app.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import string
|
| 3 |
+
import random
|
| 4 |
+
|
| 5 |
+
def generate_password(length=12, use_symbols=True):
|
| 6 |
+
characters = string.ascii_letters + string.digits
|
| 7 |
+
if use_symbols:
|
| 8 |
+
characters += string.punctuation
|
| 9 |
+
|
| 10 |
+
password = ''.join(random.choice(characters) for _ in range(length))
|
| 11 |
+
return password
|
| 12 |
+
|
| 13 |
+
def main():
|
| 14 |
+
st.title("Password Generator")
|
| 15 |
+
|
| 16 |
+
password_length = st.number_input("Enter password length", min_value=4, max_value=50, value=16)
|
| 17 |
+
include_symbols = st.checkbox("Include Symbols")
|
| 18 |
+
|
| 19 |
+
if st.button("Generate Password"):
|
| 20 |
+
generated_password = generate_password(password_length, include_symbols)
|
| 21 |
+
st.success(f"Generated Password: {generated_password}")
|
| 22 |
+
|
| 23 |
+
if __name__ == "__main__":
|
| 24 |
+
main()
|
requirements.txt
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
altair==5.2.0
|
| 2 |
+
attrs==23.1.0
|
| 3 |
+
blinker==1.7.0
|
| 4 |
+
cachetools==5.3.2
|
| 5 |
+
certifi==2023.11.17
|
| 6 |
+
charset-normalizer==3.3.2
|
| 7 |
+
click==8.1.7
|
| 8 |
+
gitdb==4.0.11
|
| 9 |
+
GitPython==3.1.40
|
| 10 |
+
idna==3.6
|
| 11 |
+
importlib-metadata==6.11.0
|
| 12 |
+
Jinja2==3.1.2
|
| 13 |
+
jsonschema==4.20.0
|
| 14 |
+
jsonschema-specifications==2023.11.2
|
| 15 |
+
markdown-it-py==3.0.0
|
| 16 |
+
MarkupSafe==2.1.3
|
| 17 |
+
mdurl==0.1.2
|
| 18 |
+
numpy==1.26.2
|
| 19 |
+
packaging==23.2
|
| 20 |
+
pandas==2.1.3
|
| 21 |
+
Pillow==10.1.0
|
| 22 |
+
protobuf==4.25.1
|
| 23 |
+
pyarrow==14.0.1
|
| 24 |
+
pydeck==0.8.1b0
|
| 25 |
+
Pygments==2.17.2
|
| 26 |
+
pypng==0.20220715.0
|
| 27 |
+
PyQRCode==1.2.1
|
| 28 |
+
pytesseract==0.3.10
|
| 29 |
+
python-dateutil==2.8.2
|
| 30 |
+
pytube==15.0.0
|
| 31 |
+
pytz==2023.3.post1
|
| 32 |
+
referencing==0.31.1
|
| 33 |
+
requests==2.31.0
|
| 34 |
+
rich==13.7.0
|
| 35 |
+
rpds-py==0.13.2
|
| 36 |
+
six==1.16.0
|
| 37 |
+
smmap==5.0.1
|
| 38 |
+
streamlit==1.29.0
|
| 39 |
+
tenacity==8.2.3
|
| 40 |
+
toml==0.10.2
|
| 41 |
+
toolz==0.12.0
|
| 42 |
+
tornado==6.4
|
| 43 |
+
typing_extensions==4.8.0
|
| 44 |
+
tzdata==2023.3
|
| 45 |
+
tzlocal==5.2
|
| 46 |
+
urllib3==2.1.0
|
| 47 |
+
validators==0.22.0
|
| 48 |
+
watchdog==3.0.0
|
| 49 |
+
youtube-dl==2021.12.17
|
| 50 |
+
zipp==3.17.0
|