-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Morgan-Phoenix/passlib_addition
- Loading branch information
Showing
4 changed files
with
171 additions
and
17 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
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
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,73 @@ | ||
BREAKING | ||
|
||
pbkdf2-sha256$29000$C8F4r/U.5/yfM2ZszVnr3Q$7obwOw/4aZ.hYnhme9Zxqr4KgPIZ4EhRBnLKR6K9WeY (happiness) | ||
|
||
Step -> 1 | ||
|
||
pbkdf2-sha256$29000$C8F4r | ||
/ | ||
U.5 | ||
/ | ||
yfM2ZszVnr3Q$7obwOw | ||
/ | ||
4aZ.hYnhme9Zxqr4KgPIZ4EhRBnLKR6K9WeY | ||
|
||
Step -> 2 | ||
|
||
pbkdf2-sha256 NO | ||
$ NO | ||
29000 NO | ||
$ NO | ||
C8F4r YES | ||
/ NO | ||
U.5 YES | ||
/ NO | ||
yfM2ZszVnr3Q YES | ||
$ NO | ||
7obwOw YES | ||
/ NO | ||
4aZ.hYnhme9Zxqr4KgPIZ4EhRBnLKR6K9WeY YES | ||
|
||
|
||
|
||
TILL NOW RESULT | ||
|
||
C8F4rU.5yfM2ZszVnr3Q4aZ.hYnhme9Zxqr4KgPIZ4EhRBnLKR6K9WeY | ||
|
||
|
||
SALTING | ||
|
||
will use basic SHA256 to hash some random text and then add it randomly (i.e. in any order) | ||
to the original text. As everything is hashed it will be very hard to find out the original | ||
text and the Salt | ||
|
||
BASIC SALT MODLE | ||
|
||
salts = [] | ||
salts.append(str(hashlib.sha256(uuid.uuid4().bytes).digest()).split("'")[1]) | ||
salts.append(str(data).split("'")[1]) | ||
salts.append(str(hashlib.sha256(uuid.uuid4().bytes).digest()).split("'")[1]) | ||
salts.append(str(hashlib.sha256(uuid.uuid4().bytes).digest()).split("'")[1]) | ||
salts.append(str(data).split("'")[1]) | ||
salts.append(str(data).split("'")[1]) | ||
salts.append(str(hashlib.sha256(uuid.uuid4().bytes).digest()).split("'")[1]) | ||
return base64.standard_b64encode(bytes((str(base64.urlsafe_b64encode(bytes(''.join(salts).encode()))).split("'")[1]+str(base64.urlsafe_b64encode(base64.standard_b64encode((bytes(''.join(salts).encode()))))).split("'")[1]).encode())) | ||
|
||
EDITED SALT MODLE (random mode) | ||
|
||
salts = [] | ||
dataset = [] # len([]) == 7 TRUE | ||
count = 0 | ||
salts.append(str(hashlib.sha256(uuid.uuid4().bytes).digest()).split("'")[1]) | ||
data = str(data).split("/") #len([]) == 4 TRUE | ||
for i in data: | ||
dataset.append(str(i).split("$")) | ||
count+=1 | ||
dataset.pop(0) | ||
dataset.pop(1) | ||
for i in range(count): | ||
salts.append(str(hashlib.sha256(uuid.uuid4().bytes).digest()).split("'")[1]) | ||
salts.append(str(hashlib.sha256(uuid.uuid4().bytes).digest()).split("'")[1]) | ||
salts.append(str(dataset[i])) | ||
salts.append(str(hashlib.sha256(uuid.uuid4().bytes).digest()).split("'")[1]) | ||
return base64.standard_b64encode(bytes((str(base64.urlsafe_b64encode(bytes(''.join(salts).encode()))).split("'")[1]+str(base64.urlsafe_b64encode(base64.standard_b64encode((bytes(''.join(salts).encode()))))).split("'")[1]).encode())) |
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,74 @@ | ||
{ | ||
"passlib":{ | ||
"pbkdf2":{ | ||
"1":"pbkdf2_sha1", | ||
"2":"pbkdf2_sha256", | ||
"3":"pbkdf2_sha512", | ||
"4": "cta_pbkdf2_sha1", | ||
"5":"dlitz_pbkdf2_sha1", | ||
"6":"grub_pbkdf2_sha512" | ||
}, | ||
"argon2":{ | ||
"1":"argon2" | ||
}, | ||
"bcrypt":{ | ||
"1":"bcrypt" | ||
}, | ||
"cisco":{ | ||
"1":"cisco_pix", | ||
"2":"cisco_asa", | ||
"3":"cisco_type7" | ||
}, | ||
"des_crypt":{ | ||
"1":"des_crypt", | ||
"2":"bsdi_crypt", | ||
"3":"bigcrypt", | ||
"4":"crypt16" | ||
}, | ||
"digests":{ | ||
"1":"create_hex_hash", | ||
"2":"hex_md4", | ||
"3":"hex_md5", | ||
"4":"hex_sha1", | ||
"5":"hex_sha256", | ||
"6":"hex_sha512" | ||
}, | ||
"django":{ | ||
"1":"django_salted_sha1", | ||
"2":"django_salted_md5", | ||
"3":"django_bcrypt", | ||
"4":"django_pbkdf2_sha1", | ||
"5":"django_pbkdf2_sha256", | ||
"6":"django_argon2", | ||
"7":"django_des_crypt", | ||
"8":"django_disabled" | ||
}, | ||
"fshp":{ | ||
"1":"fshp" | ||
}, | ||
"ldap_digest":{ | ||
"1":"ldap_plaintext", | ||
"2":"ldap_md5", | ||
"3":"ldap_sha1", | ||
"4":"ldap_salted_md5", | ||
"5": "ldap_salted_sha1", | ||
"6":"ldap_salted_sha256", | ||
"7":"ldap_salted_sha512" | ||
}, | ||
"mysql":{ | ||
"1":"mysql323", | ||
"2":"mysq41" | ||
}, | ||
"oracle":{ | ||
"1":"oracle10g", | ||
"2":"oracle11g" | ||
}, | ||
"windows":{ | ||
"1":"lmhash", | ||
"2": "nthash", | ||
"3":"bsd_nthash", | ||
"4":"msdcc", | ||
"5":"msdcc2" | ||
} | ||
} | ||
} |