mirror of
https://github.com/anope/anope.git
synced 2026-07-07 20:23:13 +02:00
Add self-tests to the encryption providers.
This commit is contained in:
@@ -104,6 +104,13 @@ public:
|
||||
{
|
||||
return std::make_unique<Argon2Context>(this->type);
|
||||
}
|
||||
|
||||
Anope::string ToPrintable(const Anope::string &hash) override
|
||||
{
|
||||
// We have no way to make this printable without the creating context
|
||||
// so we always return the printed form.
|
||||
return hash;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user