123456789 |
- def sha224_generic_passwd(password, uppercase=False):
- """
- >>> sha224_generic_passwd(password='testpass', uppercase=False)
- '648db6019764b598f75ab6b7616d2e82563a00eb1531680e19ac4c6f'
- """
- retVal = sha224(password).hexdigest()
- return retVal.upper() if uppercase else retVal.lower()
|