This commit is contained in:
Luke Rogers 2012-05-17 07:45:16 +12:00
parent 496d5c4f9d
commit e8e7c297ef

View file

@ -28,6 +28,6 @@ def sha512(inp):
@hook.command
def hash(inp):
.hash <text> -- Returns hashes of <text>."
"hash <text> -- Returns hashes of <text>."
return ', '.join(x + ": " + getattr(hashlib, x)(inp).hexdigest()
for x in ['md5', 'sha1', 'sha256'])