mirror of
https://github.com/billbuchanan/appliedcrypto.git
synced 2026-02-21 19:27:58 +00:00
Update f_01.py
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import passlib.hash;
|
||||
salt="8sFt66rZ"
|
||||
string="hello"
|
||||
print ("SHA1:"+passlib.hash.sha1_crypt.encrypt(string, salt=salt))
|
||||
print ("SHA256:"+passlib.hash.sha256_crypt.encrypt(string, salt=salt))
|
||||
print ("SHA512:"+passlib.hash.sha512_crypt.encrypt(string, salt=salt))
|
||||
print ("SHA1:"+passlib.hash.sha1_crypt.hash(string, salt=salt))
|
||||
print ("SHA256:"+passlib.hash.sha256_crypt.hash(string, salt=salt))
|
||||
print ("SHA512:"+passlib.hash.sha512_crypt.hash(string, salt=salt))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user