123456789 |
- def sha384_generic_passwd(password, uppercase=False):
- """
- >>> sha384_generic_passwd(password='testpass', uppercase=False)
- '6823546e56adf46849343be991d4b1be9b432e42ed1b4bb90635a0e4b930e49b9ca007bc3e04bf0a4e0df6f1f82769bf'
- """
- retVal = sha384(password).hexdigest()
- return retVal.upper() if uppercase else retVal.lower()
|