Cipher Programs

Post on 03-Nov-2015

238 views 0 download

description

using c++

Transcript of Cipher Programs

/** Type: Monoalphabetic Substitution Cipher * Caesar Cipher*/ #include #include #include#includeusing namespace std;

class CaesarCipher{ private: static const int KEY = 3 ; // the key for caesar cipher public: string encryption (string str) { string str2 = "" ; for (int i=0 ; i