Hello Friends,
I need simple file encryption library to encrypt files with symmetric key and decrypt them.
I went through open ssl and its too confusing.I just need simple library to perform just file encrypt and decrypt.
I am new in C, just done programming in java/php before.
Thanks all
Akaash
|
Contributor
|
|
| 10Feb2010,19:58 | #2 |
|
For simplicity of code and understanding, I'd go with a simple stream cipher like RC4. What are your requirements? How secure does it need to be? Is it to be platform independent (Windows has had a cryptoAPI for some time now which makes things much easier)?
|
|
Newbie Member
|
|
| 12Feb2010,13:41 | #3 |
|
THanks for the reply,
security is not primary concern.First i need a library. I need to use encryption code in linux environment. Regards sumit |
|
Contributor
|
|
| 12Feb2010,20:27 | #4 |
|
Well, RC4 is very simple to code in C. It's a stream cipher so once it is initialized, just grab a byte one at a time and XOR it with your plaintext.
There's a complete example here: http://en.wikipedia.org/wiki/Rc4 |
