Crc32CalculateHash(String, Encoding, UInt32) Method
Computes the CRC-32 hash value for the specified
String.
Namespace: KGySoft.Security.CryptographyAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static uint CalculateHash(
string s,
Encoding? encoding = null,
uint polynomial = 3988292384
)
Public Shared Function CalculateHash (
s As String,
Optional encoding As Encoding = Nothing,
Optional polynomial As UInteger = 3988292384
) As UInteger
public:
static unsigned int CalculateHash(
String^ s,
Encoding^ encoding = nullptr,
unsigned int polynomial = 3988292384
)
static member CalculateHash :
s : string *
?encoding : Encoding *
?polynomial : uint32
(* Defaults:
let _encoding = defaultArg encoding null
let _polynomial = defaultArg polynomial 3988292384
*)
-> uint32
- s String
- The input String to compute the hash code for.
- encoding Encoding (Optional)
- An Encoding instance to specify the desired byte representation of the specified string, or to use UTF8 encoding. This parameter is optional.
Default value: . - polynomial UInt32 (Optional)
- The polynomial to use to calculate the CRC value. This parameter is optional.
Default value: StandardPolynomial.
UInt32The CRC-32 hash value of the specified
String.