C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-10-2010, 02:32 AM   #1
Registered User
 
Join Date: Feb 2010
Posts: 3
need simple file encryption library

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

Edit/Delete Message
akaash19 is offline   Reply With Quote
Old 02-10-2010, 03:09 AM   #2
Registered User
 
Join Date: Jan 2010
Posts: 238
XOR cipher - Wikipedia, the free encyclopedia
That's about as simple encryption method as you can get I think
_Mike is offline   Reply With Quote
Old 02-10-2010, 05:56 AM   #3
Registered User
 
Join Date: Feb 2010
Posts: 3
Thanks a lot for your reply.
However i needed a library with functions to encrypt and decrypt.I am naive to C programming.
Regards
akaash
akaash19 is offline   Reply With Quote
Old 02-10-2010, 06:23 AM   #4
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 12,459
Quote:
Originally Posted by akaash19
I need simple file encryption library to encrypt files with symmetric key and decrypt them.
Is this just for a learning exercise? If so, what are you supposed to learn? C? Encryption?

Quote:
Originally Posted by akaash19
However i needed a library with functions to encrypt and decrypt.I am naive to C programming.
As in you do not think that you can implement anything yourself? If so, I think that you do not "a library with functions to encrypt and decrypt"; you need to learn C.
__________________
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar

Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
laserlight is offline   Reply With Quote
Old 02-12-2010, 02:29 AM   #5
Registered User
 
Join Date: Feb 2010
Posts: 3
I wok in java/php. i just need to build a code in c to encrypt and decrypt files.
I could have used tools to do the encryption jobs,but the code has to do it itself automatically.
Its not learning exercise.and i believe there is no need for me to dive into creating my encryption code which can not be promised to be flawless.why not use whats available and tested.

Regards
sumit
akaash19 is offline   Reply With Quote
Old 02-12-2010, 02:53 AM   #6
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 12,459
Quote:
Originally Posted by akaash19
Its not learning exercise.and i believe there is no need for me to dive into creating my encryption code which can not be promised to be flawless.why not use whats available and tested.
Yes. If you are unable to use openssl, search the Web for "C encryption library". In fact, in PHP you might have heard of mcrypt, which is a C library.

I hope that you are aware that encryption is usually just one piece of the security puzzle, and that you have some knowledge to appropriately pick an encryption algorithm and encryption mode, and use the library correctly in your program.
__________________
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar

Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
laserlight is offline   Reply With Quote
Old 02-12-2010, 11:38 AM   #7
Registered User
 
jeffcobb's Avatar
 
Join Date: Dec 2009
Location: Henderson, NV
Posts: 887
Quote:
Originally Posted by akaash19 View Post
I wok in java/php. i just need to build a code in c to encrypt and decrypt files.
I could have used tools to do the encryption jobs,but the code has to do it itself automatically.
Its not learning exercise.and i believe there is no need for me to dive into creating my encryption code which can not be promised to be flawless.why not use whats available and tested.

Regards
sumit
Why not just use bcrypt if you are in a *NIX environment...quick, easy and secure...and since java and PHP have prepared you poorly for this task, this may be the easiest solution...
__________________
C/C++ Environment: GNU CC/Emacs
Make system: CMake
Debuggers: Valgrind/GDB
jeffcobb is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help With Header library file.. kensam C Programming 8 01-27-2010 01:39 PM
Formatting a text file... dagorsul C Programming 12 05-02-2008 03:53 AM
Game Pointer Trouble? Drahcir C Programming 8 02-04-2006 02:53 AM
airport Log program using 3D linked List : problem reading from file gemini_shooter C Programming 3 03-04-2005 02:46 PM
System drdroid C++ Programming 3 06-28-2002 10:12 PM


All times are GMT -6. The time now is 12:05 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22