Skip to content

Commit

Permalink
Mark PBKDF2() obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
cinderblocks committed Nov 11, 2022
1 parent b2fd337 commit 7f06c91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions LibreMetaverse.Types/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,10 @@ public static string MD5String(string value)
/// <summary>
/// Calculates a PBKDF2 hash of a given string
/// </summary>
/// <remarks>Rfc2989 is outdated and insecure. Use at your own risk!</remarks>
/// <param name="str">The string to hash</param>
/// <returns>The PBKDF2 hash of the supplied string</returns>
[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};
Expand Down
4 changes: 2 additions & 2 deletions LibreMetaverse.Utilities/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static bool Shoot(GridClient client)
}

/// <summary>
/// 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
/// </summary>
Expand All @@ -102,7 +102,7 @@ public static void Chat(GridClient client, string message)
}

/// <summary>
/// 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
/// </summary>
Expand Down

0 comments on commit 7f06c91

Please sign in to comment.