Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
R3DHULK authored Oct 25, 2022
1 parent aa4ace4 commit d6aec7b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
25 changes: 25 additions & 0 deletions password_generator.py
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")
13 changes: 13 additions & 0 deletions random_token_generator.py
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")

0 comments on commit d6aec7b

Please sign in to comment.