SecurityHelper Class

Version 1.1.28
.NET Framework 4.8
This class has been marked as obsolete: Use the SecurityUtils class instead.
Namespace Skybrud.Essentials.Security
Assembly Skybrud.Essentials.dll
Visibility Public
Keywords Static
Inheritance Object

Static class with miscellaneous helper methods.

[Obsolete("Use the SecurityUtils class instead.")]
public static class SecurityHelper { }

Methods

Base64 decodes the specified input string.

Base64 encodes the specified input string.

Gets the hash of input using the specified algorithm.

Gets the hash of input using the specified algorithm.

Gets the hash of the file specified by the path using the specified algorithm.

Gets the MD5 hash of input, and returns that hash. The input string is converted using System.Text.Encoding.UTF8.

Gets the MD5 hash of input, and returns that hash. The input string is converted using encoding.

Gets the MD5 hash of the file specified by the path. The hash is a 64-character hexadecimal number.

Gets the SHA1 hash of the file specified by the path. The hash is a 40-character hexadecimal number.

Gets the SHA1 hash of input, and returns that hash. The input string is converted using System.Text.Encoding.UTF8.

Gets the SHA1 hash of input, and returns that hash. The input string is converted using encoding.

Gets the SHA256 hash of input, and returns that hash. The input string is converted using System.Text.Encoding.UTF8.

Gets the SHA256 hash of input, and returns that hash. The input string is converted using encoding.

Gets the SHA256 hash of the file specified by the path. The hash is a 64-character hexadecimal number.

Gets the SHA512 hash of input, and returns that hash. The input string is converted using System.Text.Encoding.UTF8.

Gets the SHA512 hash of input, and returns that hash. The input string is converted using encoding.

Gets the SHA512 hash of the file specified by the path. The hash is a 128-character hexadecimal number.