Click here to Skip to main content
15,923,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to create an encrypted file in php that is readable and decryptable by a c++ program?

I need to create an encrypted filr that can be read and and decrypyted by a standard c++ program I.e the file must be readable in any os that can run c++ program.
Posted

1 solution

Of course it is possible, provided the two programs use the same algorithm (and the same key).
 
Share this answer
 
Comments
Gbenbam 7-Feb-14 6:20am    
That means the encryption code must use equivalent data type.
What equivalent data type is there between PHP and C++ that one can use?
CPallini 7-Feb-14 11:06am    
You have to use an array of bytes. If you need it ASCII-only (for instance, in order to send it by e-mail, then you could encode it in Base64).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900