home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Learning C

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1486
Discussions: 200,932, Posts: 2,379,166, Members: 246,297
Old September 28th, 2004, 01:30 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Jul 2002
Location: DC Suburbia
Posts: 190
Send a message via AIM to jon112981 Send a message via Yahoo to jon112981
Learning C

Hey. I have a question for all you programmers out there. I am an Information Security student at Hopkins and one of the courses I'm taking is a crypto course. Now I have been told by EVERYONE that THE language to use for Crypto is C. I have limited C++ experience and would like to work on learning C, the difference between the two, and becoming familiar with the C enviroment.

Can someone out there recomend a good free C compiler, for student use only of course, and a reference page online? Right now I'm running windows XP at home. We DO have access to some old Sparks with a C compiler for assignments on them but I'd rather work at home for learning it, the labs aren't THAT convenient (i.e. 2 am). I'm not looking for something to be secure at all, since this won't be applied to anything, just me learning C and some of the crypto algorithms.


Thanks,

Jon
jon112981 is offline   Reply With Quote
Old September 28th, 2004, 07:35 PM     #2 (permalink)
Ultimate Member
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: Pasadena, CA
Posts: 2,177
Borland made a program:

http://community.borland.com/article...0841/tc201.zip

Thats the direct download of a program called Turbo C. Probably what you are looking for. Google for "Free C Compilers" and you'll find tons of stuff.
Tekk is offline   Reply With Quote
Old September 28th, 2004, 07:43 PM     #3 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,384
I'd suggest learning some linux as well, a friend of mine at work is in security .. a lot of 'security' tools are in linux, including some great IDS tools.
Linux also comes standard with c/c++ compilers.

Snort with a MySQL backend is very popular.
Enterasys dragon IDS systems are redhat based if I remember right.
I'd highly suggest a c background, as a security guy its quite common to find 'tools' that are code only and you have to compile them to use them. Setup a small lan that you can tamper with your own machines to really learn how to access systems.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is offline   Reply With Quote
Old September 28th, 2004, 07:48 PM     #4 (permalink)
Member
 
Join Date: Sep 2004
Location: Your living room...
Posts: 417
All you'll ever need

Compiler:
GCC

Reference:
Oreilly

hope this helps
__________________
I reserve the right to contradict myself. . .

Last edited by gberz3 : September 28th, 2004 at 07:52 PM.
gberz3 is offline   Reply With Quote
Old September 28th, 2004, 07:52 PM     #5 (permalink)
Ultimate Member
 
HeadBand's Avatar
 
Join Date: Dec 2003
Posts: 3,991
i don't know much about it, i just started learnign c++ myself, but every C program is also a C++ program, so they are very similar

anyways here are the links i have they are mostly on c++ though
Teach Yourself C++ in 21 Days - Day 1
http://newdata.box.sk/bx/c/index.htm
Thinking in C++ by Bruce Eckel Chapter 1 (skip the Sections on Extreme Programming and Strategies for Transition)
http://www.mindview.net/Books/TICPP/...ngInCPP2e.html
EGCS Documentation on the C Preprocessor (section on header files)
http://www.lns.cornell.edu/public/CO...pp_1.html#SEC4
Chapter 1 of A Beginner's C++ (extra credit)
http://www.uow.edu.au/~nabg/ABC/C1.pdf

and these are the compilers the instructor recomended
Dev-C++
http://www.bloodshed.net/dev/devcpp.html
(download the latest one with mingw approx. 7.6MB)

BCC 5.5 (borland's free one)
http://www.borland.com/bcppbuilder/freecompiler/
__________________
Hey who turned sigs on?
HeadBand is offline   Reply With Quote
Old September 28th, 2004, 07:56 PM     #6 (permalink)
Ultimate Member
 
elmers's Avatar
 
Join Date: Sep 2003
Location: Philadelphia
Posts: 1,484
"Now I have been told by EVERYONE that THE language to use for Crypto is C."

Huh, Im sorry but this is b$, I mean writing a good encrypter can be done in any language, as long as youre using a good algorithm. That would be like saying the fastest programs are written in assembler.
elmers is offline   Reply With Quote
Old September 28th, 2004, 07:56 PM     #7 (permalink)
Member
 
Join Date: Sep 2004
Location: Your living room...
Posts: 417
. . .how could I forget?

You certainly want this in your collection as well:

ANSI C PROGRAMMING LANGUAGE
gberz3 is offline   Reply With Quote
Old September 28th, 2004, 08:00 PM     #8 (permalink)
Member
 
Join Date: Sep 2004
Location: Your living room...
Posts: 417
Quote:
Originally Posted by elmers
"Now I have been told by EVERYONE that THE language to use for Crypto is C."

Huh, Im sorry but this is b$, I mean writing a good encrypter can be done in any language, as long as youre using a good algorithm. That would be like saying the fastest programs are written in assembler.

Yes, and no. I mean, I could write a GUI using PERL or LISP, but i certainly wouldn't want to. The point is C is currently the best power vs. usability option for crypto. For a reference, you may wish to check out:

Cryptlib

Last edited by gberz3 : September 28th, 2004 at 08:03 PM.
gberz3 is offline   Reply With Quote
Old September 29th, 2004, 09:42 AM     #9 (permalink)
Ultimate Member
 
elmers's Avatar
 
Join Date: Sep 2003
Location: Philadelphia
Posts: 1,484
LISP encryper...now thats funny. I see your point.
elmers is offline   Reply With Quote
Old September 29th, 2004, 10:04 AM     #10 (permalink)
may contain mild peril
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,329
Quote:
Im sorry but this is b$, I mean writing a good encrypter can be done in any language

I would think speed would influence the decision for some people, hence the choice of C.
Quote:
but every C program is also a C++ program, so they are very similar

I suggest you concentrate on learning either C or C++ (rather than both at once), they are radically different in many respects and you will just end up writing a horrible kludgy mix of the two (I should know, thats how it was taught to me at uni).
Quote:
LISP encryper...now thats funny.

Funny how? Google seems to turn up plenty of lisp based encryption stuff including a Rijndael implementation.

Last edited by SpookyEddy : September 29th, 2004 at 10:07 AM.
SpookyEddy is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
See What Your IQ Is Brainchild IMO Community 81 November 20th, 2002 08:27 AM
Help with getting a career in hardware support, ect iNeb General Tech Discussion 14 November 19th, 2002 03:56 AM
I am not a Dell customer hukilau IMO Community 45 November 6th, 2002 01:26 AM
Rant: Helping people build PC's jman01pa IMO Community 21 October 14th, 2002 04:07 PM
Yet another Linux pondering Cruez Applications and Operating Systems 19 June 18th, 2002 04:53 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2875)
Obama the Muslim (14)
California Passes Anti-Flat-HDTV Le.. (39)
Is the PSU I received dead? (10)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (16)
EVGA 9800 gtx help with finding a g.. (8)
New Computer wont recognize XP disc (7)
Recent Discussions
BIOS won't read disk when I try to fl.. (0)
Wireless Televisions. (0)
Install XP pro and a Vista laptop ?? (11)
Partition Magic caused HDD problem (2)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Ideal cheap graph card for PC-Gaming? (16)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)


All times are GMT -4. The time now is 08:26 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28