i have an assignment and i need to encrypt the objects before serializing them into the file. i've looked for information and all i found was encrypting strings. is this my only option?to encrypt each field of the object and then assemble them all to the original object? Thanks.
i have about 5 different types of objects:Product,Employee and so on. i have the whole code and i serialize and desrialize those objects to a file pretty easily. all i need now,is a way to encrypt the object before i serialize it. i've looked into CryptoStream but i didn't see a method which enables it. Help?
//Edit:
i need to do encryption on the fly-it means:
Do all encryption in memory so that unencrypted data is never written to disk. in other words, don’t write unencrypted data to a file, read it, encrypt it, and write it back –this method is very vulnerable.
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
no123 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
no123 0 Newbie Poster
no123 0 Newbie Poster
tinstaafl 1,176 Posting Maven
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
no123 0 Newbie Poster
DaveAmour 160 Mmmmmm beer Featured Poster
tinstaafl 1,176 Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.