Tweaked hash command
This commit is contained in:
parent
37b50b3fee
commit
d5ba3e2e56
|
@ -30,4 +30,4 @@ def sha512(inp):
|
||||||
def hash(inp):
|
def hash(inp):
|
||||||
".hash <text> -- Returns hashes of <text>."
|
".hash <text> -- Returns hashes of <text>."
|
||||||
return ', '.join(x + ": " + getattr(hashlib, x)(inp).hexdigest()
|
return ', '.join(x + ": " + getattr(hashlib, x)(inp).hexdigest()
|
||||||
for x in 'md5 sha1 sha256'.split())
|
for x in ['md5', 'sha1', 'sha256'])
|
||||||
|
|
Reference in a new issue