Answers for "generate sha256"

PHP
3

php sha256

echo hash('sha256', $_POST['ppasscode']);
Posted by: Guest on September-23-2020
0

sha256_crypt.verify

import hashlib

user_entered_password = 'pa$$w0rd'
salt = "5gz"
db_password = user_entered_password+salt
h = hashlib.md5(db_password.encode())
print(h.hexdigest())
Posted by: Guest on May-26-2020

Browse Popular Code Answers by Language