Hashing functions for sequences of characters or bytes
More...
|
| static uint | CRC (string value) |
| | For each characters do a 5-bit left circular shift and XOR in character numeric value (CRC variant) More...
|
| |
| static uint | CRC2 (string value) |
| | For each characters do a 5-bit left circular shift and XOR in character numeric value (CRC variant) More...
|
| |
| static uint | PJW (string value) |
| | For each characters add character numeric value and left shift by 4 bits (PJW hash) More...
|
| |
| static string | MD5 (string text, Encoding encoding) |
| | Return MD5 for a string. More...
|
| |
| static string | MD5 (string text) |
| | Return MD5 for a string. More...
|
| |
| static string | SHA1 (string text, Encoding encoding) |
| | Return SHA1 for a string. More...
|
| |
| static string | SHA1 (string text) |
| | Return SHA1 for a string. More...
|
| |
| static string | SHA256 (string text, Encoding encoding) |
| | Return SHA1 for a string. More...
|
| |
| static string | SHA256 (string text) |
| | Return SHA1 for a string. More...
|
| |
Hashing functions for sequences of characters or bytes
◆ CRC()
| static uint Energy.Base.Hash.CRC |
( |
string |
value | ) |
|
|
static |
For each characters do a 5-bit left circular shift and XOR in character numeric value (CRC variant)
- Parameters
-
- Returns
- 32-bit hash value for a string (uint)
◆ CRC2()
| static uint Energy.Base.Hash.CRC2 |
( |
string |
value | ) |
|
|
static |
For each characters do a 5-bit left circular shift and XOR in character numeric value (CRC variant)
- Parameters
-
- Returns
◆ MD5() [1/2]
| static string Energy.Base.Hash.MD5 |
( |
string |
text, |
|
|
Encoding |
encoding |
|
) |
| |
|
static |
Return MD5 for a string.
- Parameters
-
| text | Source text to calculate hash from |
| encoding | Text encoding |
- Returns
- string
◆ MD5() [2/2]
| static string Energy.Base.Hash.MD5 |
( |
string |
text | ) |
|
|
static |
Return MD5 for a string.
- Parameters
-
- Returns
- string
◆ PJW()
| static uint Energy.Base.Hash.PJW |
( |
string |
value | ) |
|
|
static |
For each characters add character numeric value and left shift by 4 bits (PJW hash)
Aho, Sethi, and Ullman pp. 434-438
- Parameters
-
- Returns
- 24-bit hash value for a string (uint)
◆ SHA1() [1/2]
| static string Energy.Base.Hash.SHA1 |
( |
string |
text, |
|
|
Encoding |
encoding |
|
) |
| |
|
static |
Return SHA1 for a string.
- Parameters
-
| text | Source text to calculate hash from |
| encoding | Text encoding |
- Returns
- SHA1 hash in hex format
◆ SHA1() [2/2]
| static string Energy.Base.Hash.SHA1 |
( |
string |
text | ) |
|
|
static |
Return SHA1 for a string.
- Parameters
-
| text | Source text to calculate hash from |
- Returns
- SHA1 hash in hex format
◆ SHA256() [1/2]
| static string Energy.Base.Hash.SHA256 |
( |
string |
text, |
|
|
Encoding |
encoding |
|
) |
| |
|
static |
Return SHA1 for a string.
- Parameters
-
| text | Source text to calculate hash from |
| encoding | Text encoding |
- Returns
- SHA1 hash in hex format
◆ SHA256() [2/2]
| static string Energy.Base.Hash.SHA256 |
( |
string |
text | ) |
|
|
static |
Return SHA1 for a string.
- Parameters
-
| text | Source text to calculate hash from |
- Returns
- SHA1 hash in hex format
The documentation for this class was generated from the following file: