Cryptographic Hash Functions
- analogy: hashing => fish hook
- Checksum Utility
- Digital Signatures
- sha1sum ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe
-
Cyclic Redundancy Check
- https://en.wikipedia.org/wiki/List_of_hash_functions
- http://www.fileformat.info/tool/hash.htm?hex=82623ec828f8db0a311202fc65789c93212d641b9986f6a2ea213d4564eb1e0f
CRC-8 | | | 8 | | |
CRC-16 | | | 16 | | |
CRC-32 | | | 32 |
|
|
CRC-64 | | | 64 |
|
|
AES |
|
|
|
| FIPS 197 |
DES |
|
|
|
| FIPS 46-3 |
3DES |
|
|
|
|
|
MD5 |
| 128 bits | 512 bits (64 bytes) |
|
|
RIPEMD-128 | | 128 bits | 512 bits | | |
RIPEMD-160 | | 160 bits | 512 bits | | |
SHA-1 |
| 160 bits (20 bytes) (40 HEX digits) | 512 bits |
http://en.wikipedia.org/wiki/SHA-1 |
https://shattered.it 2017-02-23
https://shattered.io
https://alf.nu/SHA1
|
SHA-2 | SHA-256 | 256 bits (32 bytes) (64 HEX digit) | 512 bits | http://en.wikipedia.org/wiki/SHA-2 |
|
SHA-512 | 512 bits (64 bytes) (128 HEX digit) | 1024 bits (128 bytes) |
|
SHA-224
|
|
|
|
SHA-384
|
|
|
|
SHA-512/224 |
|
|
|
SHA-512/256 |
|
|
|
| | | | | |
|
2b44f62b496e449a6d97d62a4e8d452b44f62b496e449a6d97d62a4e8d45af67 |
Use AES symmetric encryption with either AesCryptoServiceProvicer or RijndaelManaged classes.
symmetric
In RSA data must be shorter than key length
System.Security.Cryptography.AesManaged
the RSACryptoServiceProvider class
ONE-WAY HASH
RotateLeft = (input << bits) | (input >> (32 - bits))
sqrt(2) = 1.4142135623730950488016887242097
- 1 => 0.4142135623730950488016887242097 * 16 => [6].627416997969520780827019587355
- 6 => 0.6274169979695207808270195873552 * 16 => [10].038671967512332493232313397683
- 10 => 0.0386719675123324932323133976827 * 16 => [0].618751480197319891717014362923
- 0 => 0.6187514801973198917170143629233 * 16 => [9].900023683157118267472229806773
* 16 => [14].400378930513892279555676908372
* 16 => [6].406062888222276472890830533959
* 16 => [6].497006211556423566253288543350
* 16 => [7].952099384902777060052616693613
0x6a09e667