mirror of
https://github.com/anope/anope.git
synced 2026-07-05 05:13:12 +02:00
Add self-tests to the encryption providers.
This commit is contained in:
@@ -54,6 +54,11 @@ public:
|
||||
{
|
||||
if (ModuleManager::FindFirstOf(ENCRYPTION) == this)
|
||||
throw ModuleException("enc_md5 is deprecated and can not be used as a primary encryption method");
|
||||
|
||||
md5provider.Check({
|
||||
{ "d41d8cd98f00b204e9800998ecf8427e", "" },
|
||||
{ "9e107d9d372bb6826bd81d3542a419d6", "The quick brown fox jumps over the lazy dog" },
|
||||
});
|
||||
}
|
||||
|
||||
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) override
|
||||
|
||||
Reference in New Issue
Block a user