I'm using the SEAL library in C++. I would like to save the ciphertext to a file. I was thinking something like transforming it to a string type and saving it. I want to have a file with all the ciphertexts and when needed upload the file to memory to use them again. I will also have to save the encryption and decryption keys to be able to decrypt later the results.
Has someone used this cryptography library and knows how to save the ciphertexts generated to a file? I am just learning how to use this library and I'm new with C++, so I'm struggling with this.
Thanks!
This is the way I do.
For both operatios I use the API provided like this:
For loading again you have two ways: