|
HasherComputeHash Method (String, HashereHashType) |
Computes the hash of the string using a specified hash algorithm
Namespace: DrawerBackup.Native.ExtensionsAssembly: DrawerBackup.Native (in DrawerBackup.Native.dll) Version: 0.0.1.1 (0.0.1.1)
Syntaxpublic static string ComputeHash(
this string input,
HashereHashType hashType
)
<ExtensionAttribute>
Public Shared Function ComputeHash (
input As String,
hashType As HashereHashType
) As String
public:
[ExtensionAttribute]
static String^ ComputeHash(
String^ input,
HashereHashType hashType
)
[<ExtensionAttribute>]
static member ComputeHash :
input : string *
hashType : HashereHashType -> string
Parameters
- input
- Type: SystemString
The string to hash - hashType
- Type: DrawerBackup.Native.ExtensionsHashereHashType
The hash algorithm to use
Return Value
Type:
StringThe resulting hash or an empty string on error
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also