PEP8, lots of tweaks/fixes

This commit is contained in:
neersighted 2012-04-02 09:17:55 -07:00
parent 641b770dc3
commit 508fec8ae8
29 changed files with 165 additions and 111 deletions

View file

@ -1,26 +1,31 @@
import hashlib
from util import hook
@hook.command
def md5(inp):
".hash <text> -- Returns a md5 hash of <text>."
return hashlib.md5(inp).hexdigest()
@hook.command
def sha1(inp):
".hash <text> -- Returns a sha1 hash of <text>."
return hashlib.sha1(inp).hexdigest()
@hook.command
def sha256(inp):
".hash <text> -- Returns a sha256 hash of <text>."
return hashlib.sha256(inp).hexdigest()
@hook.command
def sha512(inp):
".hash <text> -- Returns a sha512 hash of <text>."
return hashlib.sha512(inp).hexdigest()
@hook.command
def hash(inp):
".hash <text> -- Returns hashes of <text>."