summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-14 01:01:24 +0100
committerSadie Powell <sadie@witchery.services>2025-04-14 01:01:24 +0100
commit07bd1bbec968931a12d2dc818383ce5115146e97 (patch)
tree04f09ab59d088790cd8868376aa43cc4cfb64ae8
parentaa0a687a580d57bfc9b122275329390087745d29 (diff)
Switch enc_sha2 default from sha256 to sha512.
-rw-r--r--data/anope.example.conf4
-rw-r--r--modules/encryption/enc_sha2.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/data/anope.example.conf b/data/anope.example.conf
index 0e8591315..4474b3175 100644
--- a/data/anope.example.conf
+++ b/data/anope.example.conf
@@ -1280,9 +1280,9 @@ module
name = "enc_sha2"
/** The sub-algorithm to use. Can be set to sha224 for SHA-224, sha256 for
- * SHA-256, sha384 for SHA-384, or sha512 for SHA-512. Defaults to sha256.
+ * SHA-256, sha384 for SHA-384, or sha512 for SHA-512. Defaults to sha512.
*/
- #algorithm = "sha256"
+ #algorithm = "sha512"
}
/*
diff --git a/modules/encryption/enc_sha2.cpp b/modules/encryption/enc_sha2.cpp
index 4e60d330d..6f7a2b7cb 100644
--- a/modules/encryption/enc_sha2.cpp
+++ b/modules/encryption/enc_sha2.cpp
@@ -128,7 +128,7 @@ public:
void OnReload(Configuration::Conf &conf) override
{
- this->defaultprovider = GetAlgorithm(Config->GetModule(this).Get<const Anope::string>("algorithm", "sha256"));
+ this->defaultprovider = GetAlgorithm(Config->GetModule(this).Get<const Anope::string>("algorithm", "sha512"));
}
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) override