Encrypt/decrypt JSON serialized data

c#chris

Member
Joined
Dec 10, 2024
Messages
21
Programming Experience
1-3
Hello,
is there an easy way to encrypt JSON as follows ?

Writing: Object -> Serialize2JSOM -> Encrypt -> Save2File
Reading: ReadFromFile -> Decrypt -> DeserializeFromJSOM -> Object
 
When you serialize, you can serialize to a stream instead of directory to the file. The stream can be encrypted using AES. On the way back in you decrypt the stream and then give that stream to the deserializer.

 
Back
Top Bottom