Skip to Main Content
Improving your C# Skills
book

Improving your C# Skills

by Ovais Mehboob Ahmed Khan, John Callaway, Clayton Hunt, Rod Stephens
February 2019
Intermediate to advanced content levelIntermediate to advanced
606 pages
16h 18m
English
Packt Publishing
Content preview from Improving your C# Skills

53. CryptoPad

This program could use the techniques used by the preceding solution to save data in an encrypted format. When you wanted to load a file, the program would decrypt it into a temporary file, load that file, and then delete the temporary file. When you wanted to save data, the program would write the data into an unencrypted temporary file, encrypt it, and then delete the temporary file.

That method would work, but using unencrypted temporary files is risky. An attacker might be able to grab the temporary file before the program can delete it. Even worse, if the program happens to crash at the wrong moment, the temporary file might not be deleted.

Another, safer approach is to encrypt data directly between the program and the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Communicate with Teams More Effectively

Communicate with Teams More Effectively

Charles Humble
How to Help High Achievers Overcome Imposter Syndrome

How to Help High Achievers Overcome Imposter Syndrome

Morela Hernandez, Christina Lacerenza

Publisher Resources

ISBN: 9781838558383Supplemental Content