Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Update python password generator. #176

Merged
merged 3 commits into from
Sep 5, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update python password generator.
  • Loading branch information
tusharnankani committed Sep 3, 2020
commit 0e565f470bb151fe230fb054b8a7c9adf245bec7
23 changes: 23 additions & 0 deletions projects/Random password generator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Python Password Generator
##### THIS SIMPLE PROJECT WAS MADE USING PYTHON LIBRARY FUNCTIONS LIKE `string` & `random`.

* `string.ascii_letters`
- The concatenation of the ascii_lowercase and ascii_uppercase constants described below. This value is not locale-dependent.

* `string.ascii_lowercase`
- The lowercase letters <kbd>abcdefghijklmnopqrstuvwxyz</kbd>. This value is not locale-dependent and will not change.

* `string.ascii_uppercase`
- The uppercase letters <kbd>ABCDEFGHIJKLMNOPQRSTUVWXYZ</kbd>. This value is not locale-dependent and will not change.

* `string.digits`
- The string <kbd>0123456789</kbd>.

* `string.hexdigits`
- The string <kbd>0123456789abcdefABCDEF</kbd>.

* `string.octdigits`
The string <kbd>01234567</kbd>.

* `string.punctuation`
- String of ASCII characters which are considered punctuation characters in the C locale: `!"#$%&'()*+,-./:;<=>?@[\]^_{|}~`
10 changes: 10 additions & 0 deletions projects/Random password generator/python-password-generator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import random
import string

total = string.ascii_letters + string.digits + string.punctuation

length = 16

password = "".join(random.sample(total, length))

print(password)