$ g++ OneTimePad.cpp $ a.out Enter Message to Encrypt: This is the demonstration of OTP algorithm Encoded Message:IOYYaCEaTFPaOJPLSAKTVLKLTaPBaTGFaUICTENHGH Key for decryption: PHQGHUMEAYLNLFDXFIRCVSCXGGBWKFNQDUXWFNFOZV Decrypted Message:THISZIS]THETDEMONSTRATION[OFWOTP^ALGORITHM ------------------ (program exited with code: 0) Press return to continue