ModuleSHA256(InspIRCd* Me) : Module::Module(Me), key(NULL), chars(NULL)
{
+ ServerInstance->PublishInterface("HashRequest", this);
}
virtual ~ModuleSHA256()
{
+ ServerInstance->UnpublishInterface("HashRequest", this);
}
void Implements(char *List)
SHA256((const char*)SHA->GetHashData(), data, strlen(SHA->GetHashData()), chars ? chars : "0123456789abcdef", key);
return data;
}
+ else if (strcmp("NAME", request->GetId()) == 0)
+ {
+ return "sha256";
+ }
else if (strcmp("RESET", request->GetId()) == 0)
{
this->chars = NULL;