-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import random | ||
import string | ||
|
||
print(''' | ||
******************************************************** | ||
* [?] Simple Random Password Generator Tool [?] * | ||
* * | ||
* You Can Save Them In My Advanced Notepad Software * | ||
* Check Out : https://github.com/R3DHULK/hulk-office * | ||
* * | ||
******************************************************** | ||
''') | ||
def get_string(letters_count, digits_count): | ||
letters = ''.join((random.choice(string.ascii_letters) for i in range(letters_count))) | ||
digits = ''.join((random.choice(string.digits) for i in range(digits_count))) | ||
|
||
# Convert resultant string to list and shuffle it to mix letters and digits | ||
sample_list = list(letters + digits) | ||
random.shuffle(sample_list) | ||
# convert list to string | ||
final_string = ''.join(sample_list) | ||
print('Random string with', letters_count, 'letters', 'and', digits_count, 'digits', 'is:', final_string) | ||
print("Enter how many Letters and Numbers you wish to combine below 👇") | ||
get_string(int(input("How many letters? : ")), int(input("How to many number? : "))) | ||
input("Enter To Close") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import secrets | ||
print(''' | ||
******************************************************** | ||
* [?] Simple Random String Generator Tool [?] * | ||
* * | ||
* You Can Save Them In My Advanced Notepad Software * | ||
* Check Out : https://github.com/R3DHULK/hulk-office * | ||
* * | ||
******************************************************** | ||
''') | ||
val = int (input("How many no. of string you want to generate : ")) | ||
print("Your token is :", secrets.token_hex(val)) | ||
input("Enter To Close") |