Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Webservice can't get the argument value Pin
led mike17-Mar-09 4:18
led mike17-Mar-09 4:18 
QuestionTreeCtrl Pin
john563216-Mar-09 22:57
john563216-Mar-09 22:57 
AnswerRe: TreeCtrl Pin
«_Superman_»16-Mar-09 23:21
professional«_Superman_»16-Mar-09 23:21 
GeneralRe: TreeCtrl Pin
john563217-Mar-09 0:09
john563217-Mar-09 0:09 
AnswerRe: TreeCtrl Pin
Iain Clarke, Warrior Programmer17-Mar-09 0:23
Iain Clarke, Warrior Programmer17-Mar-09 0:23 
GeneralRe: TreeCtrl Pin
john563217-Mar-09 2:20
john563217-Mar-09 2:20 
GeneralRe: TreeCtrl Pin
Iain Clarke, Warrior Programmer17-Mar-09 4:07
Iain Clarke, Warrior Programmer17-Mar-09 4:07 
AnswerC++ Binary File Pin
moody12316-Mar-09 22:40
moody12316-Mar-09 22:40 
Hello every one,

I'm trying to build a programe using C++ (Compiling it by using MinGW + Command-line, so no GUI is required) that do the following;
first; store files in one binary file, each file composed of metadeta, file deta. The file data is encrypted using a symmetric encryption algorithm. The algorithm is specified in the metadata.
the metadeta contains
 File ID
 File name
 Original file size
 Size of the encrypted data
 File creation date
 File last modification date
 Encryption algorithm
 Encryption key, which is encrypted using the user public key. The
public key encryption used is RSA with 1024 bit key length.
 Checksum, which is computed using the hash function on the file
content. The hash algorithm used is SHA1.

- now when we add a file to the binary one we should do the following;
1. Provide the binary file, the file to be added, the encryption key and the public key
2. Encrypt the file using the encryption key
3. Encrypt the encryption key using the public key
4. Calculate the checksum of the file
5. Check if the file is already added to the binary file; if yes, delete it.
6. Add the metadata to the binary file
7. Add the encrypted file to the binary file

- then when we want to decrypt a file we should do the following;
1. Provide the binary file, the file ID to be extracted, the private key, the path where to extract the file
2. Check the file ID exists in the binary file. If not, return an error
3. Get the file metadata and the file encrypted text.
4. Decrypt the encryption key using the private key
5. Use the encryption key to decrypt the file encrypted text
6. Save the file in the specified path


SO would you please help me with building this programe ? and if there is any code that doing the previous, would you please send it to me?

Thanks in advance
GeneralRe: C++ Binary File PinPopular
Garth J Lancaster17-Mar-09 0:23
professionalGarth J Lancaster17-Mar-09 0:23 
QuestionRe: C++ Binary File Pin
David Crow17-Mar-09 3:28
David Crow17-Mar-09 3:28 
GeneralRe: C++ Binary File Pin
David Crow17-Mar-09 4:05
David Crow17-Mar-09 4:05 
GeneralRe: C++ Binary File Pin
moody12317-Mar-09 8:12
moody12317-Mar-09 8:12 
QuestionRe: C++ Binary File Pin
David Crow17-Mar-09 8:18
David Crow17-Mar-09 8:18 
GeneralRe: C++ Binary File Pin
moody12317-Mar-09 9:50
moody12317-Mar-09 9:50 
GeneralRe: C++ Binary File Pin
David Crow17-Mar-09 10:08
David Crow17-Mar-09 10:08 
QuestionHow to debug COM+ EXE Pin
Ash_VCPP16-Mar-09 22:32
Ash_VCPP16-Mar-09 22:32 
AnswerRe: How to debug COM+ EXE Pin
Mushtaque Nizamani18-Mar-09 20:53
Mushtaque Nizamani18-Mar-09 20:53 
QuestionIssue when building VS2005 Pin
p_196016-Mar-09 22:21
p_196016-Mar-09 22:21 
AnswerRe: Issue when building VS2005 Pin
bulg17-Mar-09 7:19
bulg17-Mar-09 7:19 
QuestionShared memory between two different process Pin
Mohammad Khodaea16-Mar-09 21:54
Mohammad Khodaea16-Mar-09 21:54 
AnswerRe: Shared memory between two different process Pin
Cedric Moonen16-Mar-09 22:03
Cedric Moonen16-Mar-09 22:03 
GeneralRe: Shared memory between two different process Pin
Mohammad Khodaea17-Mar-09 1:47
Mohammad Khodaea17-Mar-09 1:47 
GeneralRe: Shared memory between two different process Pin
Cedric Moonen17-Mar-09 1:59
Cedric Moonen17-Mar-09 1:59 
GeneralRe: Shared memory between two different process Pin
Mohammad Khodaea17-Mar-09 2:12
Mohammad Khodaea17-Mar-09 2:12 
GeneralRe: Shared memory between two different process Pin
Cedric Moonen17-Mar-09 2:31
Cedric Moonen17-Mar-09 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.