How to encrypt string and write to txt

Nikos Karavidas <[email protected]> Mon, 28 Nov 2022 11:30:04 -0800 (PST)
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>
Ok so based on the example from this link  
 (https://www.cryptopp.com/wiki/Advanced_Encryption_Standard),    i have 
tried encrypting a "plain" string into a "cipher" string and writing that 
"cipher" string to a .txt file in one program, and in another program 
afterwards reading that same .txt file into a string and decrypting it. But 
when i cout that "recovered" string, it is just  random characters and not 
my original "plain" string. I think the problem starts when i attempt to 
get the "cipher" string in the .txt file, but not sure. Any help is greatly 
appreciated. Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/c43bae19-f60e-4035-8bd1-6486180de3b7n%40googlegroups.com.