this is prolly an advanced problem, im not sure.
i have created a program in C++ for encrypting files. you can either pass it command line arguments in which case it will run silently or if a dumb user stumbled upon it they would be given prompts to figure out how it works.
there is nothing wrong with that program it works fine, my question is what would be the best way to go about converting that into a way of encrypting data on it's way out of a program, in the exact same way as you would output to any normal file. in essence, an encrypted file stream class.
Thank you for your time.