cipher is a general term for a way to encrypt data. like an algorithm which is underlies the cipher.Substitution is swapping letters of the alphabet for other letters of the alphabet.
0 + 1 = 1 and 1 + 1 = 0Encryption that uses the same key for both encryption and decryption.
Encryption that uses different keys for encryption and decryption. Common algorithms : RSA, DSA, ECDSA.