Skip to content

Instantly share code, notes, and snippets.

@alyx
Created May 27, 2012 23:58
Show Gist options
  • Save alyx/2816451 to your computer and use it in GitHub Desktop.
Save alyx/2816451 to your computer and use it in GitHub Desktop.
Sigyn sha512 command
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