From 5e2c7651ff8234ebd2df843ba39c2cc57fa04c7a Mon Sep 17 00:00:00 2001 From: TheArrayser Date: Mon, 17 Jul 2023 15:15:42 +0200 Subject: [PATCH] Add MD5 mac algorithm type for less security --- .../cringe_authenticator_library/OTPAlgorithm.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/cringe_studios/cringe_authenticator_library/OTPAlgorithm.java b/src/main/java/com/cringe_studios/cringe_authenticator_library/OTPAlgorithm.java index 964a087..caee775 100644 --- a/src/main/java/com/cringe_studios/cringe_authenticator_library/OTPAlgorithm.java +++ b/src/main/java/com/cringe_studios/cringe_authenticator_library/OTPAlgorithm.java @@ -11,7 +11,9 @@ public enum OTPAlgorithm{ SHA224("HmacSHA224"), SHA256("HmacSHA256"), SHA384("HmacSHA384"), - SHA512("HmacSHA512"); + SHA512("HmacSHA512"), + MD5("HmacMD5"); + private String javaName;