From 7f06c915ff1baa1b4035e4e211fd85203bc896af Mon Sep 17 00:00:00 2001 From: cinder Date: Fri, 11 Nov 2022 12:13:27 -0600 Subject: [PATCH] Mark PBKDF2() obsolete --- LibreMetaverse.Types/Utils.cs | 2 ++ LibreMetaverse.Utilities/Utilities.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/LibreMetaverse.Types/Utils.cs b/LibreMetaverse.Types/Utils.cs index 90c68e0e..a80376a6 100644 --- a/LibreMetaverse.Types/Utils.cs +++ b/LibreMetaverse.Types/Utils.cs @@ -388,8 +388,10 @@ namespace OpenMetaverse /// /// Calculates a PBKDF2 hash of a given string /// + /// Rfc2989 is outdated and insecure. Use at your own risk! /// The string to hash /// The PBKDF2 hash of the supplied string + [Obsolete("Rfc2989 is outdated and insecure. Use at your own risk!")] public static string PBKDF2(string str) { var derivebytes = new Rfc2898DeriveBytes(str, 32) {IterationCount = 10000}; diff --git a/LibreMetaverse.Utilities/Utilities.cs b/LibreMetaverse.Utilities/Utilities.cs index c1f55eb6..009b0acb 100644 --- a/LibreMetaverse.Utilities/Utilities.cs +++ b/LibreMetaverse.Utilities/Utilities.cs @@ -90,7 +90,7 @@ namespace OpenMetaverse.Utilities } /// - /// A psuedo-realistic chat function that uses the typing sound and + /// A pseudo-realistic chat function that uses the typing sound and /// animation, types at three characters per second, and randomly /// pauses. This function will block until the message has been sent /// @@ -102,7 +102,7 @@ namespace OpenMetaverse.Utilities } /// - /// A psuedo-realistic chat function that uses the typing sound and + /// A pseudo-realistic chat function that uses the typing sound and /// animation, types at a given rate, and randomly pauses. This /// function will block until the message has been sent ///