Removed individual hash commands, use .hash
This commit is contained in:
parent
2bdb7a7915
commit
70e22af2cd
1 changed files with 0 additions and 24 deletions
|
@ -2,30 +2,6 @@ import hashlib
|
||||||
from util import hook
|
from util import hook
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
|
||||||
def md5(inp):
|
|
||||||
"md5 <text> -- Returns a md5 hash of <text>."
|
|
||||||
return hashlib.md5(inp).hexdigest()
|
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
|
||||||
def sha1(inp):
|
|
||||||
"sha1 <text> -- Returns a sha1 hash of <text>."
|
|
||||||
return hashlib.sha1(inp).hexdigest()
|
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
|
||||||
def sha256(inp):
|
|
||||||
"sha256 <text> -- Returns a sha256 hash of <text>."
|
|
||||||
return hashlib.sha256(inp).hexdigest()
|
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
|
||||||
def sha512(inp):
|
|
||||||
"sha512 <text> -- Returns a sha512 hash of <text>."
|
|
||||||
return hashlib.sha512(inp).hexdigest()
|
|
||||||
|
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def hash(inp):
|
def hash(inp):
|
||||||
"hash <text> -- Returns hashes of <text>."
|
"hash <text> -- Returns hashes of <text>."
|
||||||
|
|
Reference in a new issue