D
D
densaface2016-02-08 11:23:26
C++ / C#
densaface, 2016-02-08 11:23:26

How to safely store files locally (solution preferably under C++ on VS 2008)?

The program collects data for the user and stores it in text form in files up to 100 Kb. The task is to encrypt this data, with the possibility of decryption only by the program that collected it. Everything has to happen locally on the machine. The program is written in MS VS 2008 (C++). I would be glad for any advice and even more recommendations with ready-made components for MS VS 2008 :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Peter, 2016-02-08
@densaface

So use functions CryptAcquireContext, CryptCreateHash, CryptHashData, CryptDeriveKey
This is the standard solution for data encryption

P
Pavel Kaptur, 2016-02-08
@drem1lin

you can use any storage format that is convenient for you and then encrypt with any open source encryption algorithm. Use any data as a password, such as a poppy address, disk serial number, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question