Crypto.VerifyHash(String, String, Crypto.HashType) Method

验证指定字符串的哈希值。

Definition

Namespace: QuickAdmin.Utils
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.0.122
C#
public static bool VerifyHash(
	string input,
	string hash,
	Crypto.HashType hashType = Crypto.HashType.MD5
)

Parameters

input  string
输入字符串。
hash  string
哈希值。
hashType  Crypto.HashType  (Optional)
哈希值类型。

Return Value

bool
验证成功时返回 true。验证时不区分大小写。

See Also