diff --git a/src/happyx/core/secure.nim b/src/happyx/core/secure.nim index 29b1c48a..be2647b6 100644 --- a/src/happyx/core/secure.nim +++ b/src/happyx/core/secure.nim @@ -17,7 +17,7 @@ using 256 elif cryptoMethod == "sha224": 224 - elif cryptoMethod == "sha224": + elif cryptoMethod == "sha384": 384 else: 512 @@ -29,7 +29,7 @@ func generate_password*(source): MDigest[ 256 elif cryptoMethod == "sha224": 224 - elif cryptoMethod == "sha224": + elif cryptoMethod == "sha384": 384 else: 512