Created
May 27, 2012 23:58
-
-
Save alyx/2816451 to your computer and use it in GitHub Desktop.
Sigyn sha512 command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _sigyn as s | |
import hashlib | |
def hash(command, target, data, nick, user, host, hostmask): | |
hashable = data[data.find(" ")+1:]; | |
s.irc_privmsg(target, hashlib.sha512(hashable).hexdigest()); | |
return; | |
s.cmd_add(hash, "sha512", 1, s.AC_NONE, "Returns a hex digest of the SHA512 hash of the given string", "<string>") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment