// MAIN.CPP - String Encryption program (Exercise 3.10.1, #8) /* The main program creates two encoded strings from plain text strings and encryption keys. It decodes and displays the strings. */ #include "secure.h" int main() { char temp[500]; SecureString S; S.Encode("BBBBBBBBBBBBBBBBBBBB", "xy4r921" ); cout << "Encoded: " << S << endl; S.Decode(temp); cout << "Decoded: " << temp << endl << endl; SecureString st("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "645195" ); cout << "Encoded: " << st << endl; st.Decode( temp ); cout << "Decoded: " << temp << endl; return 0; }