MD5
MD5
SHA
-Types
SHA
Secure Hash Algorithm
-Integrity
-SHA-1: 160-bit hash
-SHA-2: 256 bit most popular, up to 512-bit hash
-SHA-3: same sizes as SHA-2 (up to 512-bit hash). Non-NSA
HMAC
HMAC Hash-Based Message Authentication Code -Integrity and authenticity -Combine hash plus secret key (ic, HMAC-MD5,HMAC-SHA1) -Integrity and authenticity -IPSec and TLS use
RIPEMD
RIPEMP
Key Stretching
Key Stretching
bcrypt
bcrypt
PBKDF2
PDKDF2 Password Based Key Derivation Function 2 -Key-stretching technique for passwords -Salts of at least 64 bits -Hash with HMAC -May repeat a million times -Results in 128, 256, 512 bit hash -Used in WPA2, iOS, Cisco -May be weaker than bcrypt
ECB
ECB Electronic Code Book -A cypher mode -Simplest encryption mode -Each block encrypted with same key (same plaintext block creates same ciphertext) -Deprecated
CBC
CBC Cipher Block Chaining -A cypher mode -Each plaintext block XOR'ed with previous ciphertext block -Initialization vector for first block -Adds randomization
CTR
CTR
GCM
-What uses it?
GCM Galois/Counter Mode -A cypher mode -Encryption with authentication -Counter mode plus Galois authentication -Commonly used with in packetized data (wireless, IPSec, SSH, TLS)
Elliptic Curve Cryptography (ECC)
Elliptic Curve Cryptography (ECC)
Stream Cipher
Stream Cipher
Block Cipher
Block Cipher
Digital Signature
Digital Signature
Steps
PFS
PFS
Prefect Forward Secrecy
-Ephemeral keys (good for one session)
-Elliptic Curve or Diffie-Hellman ephemeral
AES
AES Advanced Encryption Standard -Symmetric encryption algorithm -128-bit block cipher -128, 192, 256-bit keys -Used in WPA2 -Strong, fast, efficient
DES
DES Data Encryption Standard -Symmetric encryption algorithm -64-bit block cypher -56-bit key (small) -Nothing today uses -Not good. Easily brute forced
3DES
3DES Triple DES -Symmetric encryption algorithm -DES encryption three times with three different keys -Nothing today uses -Not good anymore -Superseded by AES
RC4
RC4 Rivest Cipher 4 -Symmetric encryption algorithm -Symmetric stream cipher -Was used in WEP and SSL -Cracked; Not used anymore
Blowfish
Blowfish
Twofish
Twofish
Diffie-Hellman
Diffie-Hellman
RSA
RSA