C Language Encryption Tutorial: Beginner Guide

  • Thread starter Thread starter kthouz
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the possibility of performing encryption using the C programming language, particularly for beginners. It covers various aspects of programming, the nature of encryption, and resources for learning.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Homework-related

Main Points Raised

  • One participant expresses interest in learning C and wonders about the feasibility of encryption in the language.
  • Another participant notes that encryption is not inherently built into programming languages and depends on the programmer's skill.
  • A different participant emphasizes that encryption is a complex subject with various methods suitable for different purposes.
  • Several participants suggest obtaining resources, such as university course notes and the book "Applied Cryptography" by Bruce Schneier, as helpful for learning about cryptography.
  • One participant mentions that while encryption is not built into languages, there are libraries available in other languages like C# that simplify the process.

Areas of Agreement / Disagreement

Participants generally agree that encryption can be implemented in C, but there is no consensus on the best approach or resources for learning. Multiple views on the complexity of encryption and the necessity of programming skills are present.

Contextual Notes

Participants highlight the importance of foundational programming knowledge and the varying complexity of encryption methods. There is an acknowledgment of the need for practice and study to become proficient in programming and encryption.

Who May Find This Useful

Beginners in programming, particularly those interested in C language and cryptography, as well as students seeking resources for self-learning.

kthouz
Messages
188
Reaction score
0
Hello!
i am getting started with the C language. I've not yet learned about much things but am so interested with programming and am wpndering if it is possible to encrypt using c language?
 
Technology news on Phys.org
encryption is not really built into any language that I know of, you can't do like var.encrypt. encryption has to do with the programmer, so if you get good enough sure you can encrypt,just as you can with any language
 
kthouz said:
Hello!
i am getting started with the C language. I've not yet learned about much things but am so interested with programming and am wpndering if it is possible to encrypt using c language?

Learning to program takes time, and when you've properly learnt, you can program in any language: C, C++, Java, Python, Haskell, Oz, Prolog, Mercury, people in a business organisation, stones in a long row, raw assembler, etc. It's all the same. But it does take quite a few years of practise and meditation to get there -- like all skills, it's worth learning because it's non-trivial.

Encryption is also a deep subject, and there's no such thing as just "encrypting" something: there are variations, suitable for different purposes, etc. As already noted, encryption can be done in any language: people used to encrypt things with a long piece of paper helically wound about a pencil...

If you're serious about computing and programming, try to follow a university course instead -- most universities tend to put their course notes online. Like all things, self-learning is all well and good, but it's easy to get stuck on trivial things and miss out whole chunks of important stuff.

Good luck.
 
Thanks for your support.
So if you know any website where i can get notes would you let me know?
actualy am student in Physics so you see am not well placed but coz i like programming i think that i can figure it out during my free time with some good supports like you did.
 
Your university should have some computer science courses -- can you get their notes?
 
las3rjock said:
You will want to obtain a copy of Applied Cryptography by Bruce Schneier.

Seconded. This is really all you need to get started with cryptography, with any language. The examples provided are in C, though, so it'll be even more useful to you.

- Warren
 
B-80 said:
encryption is not really built into any language that I know of, you can't do like var.encrypt. encryption has to do with the programmer, so if you get good enough sure you can encrypt,just as you can with any language

But there are encryption libraries. C# (and any .NET language) for example has system.net.cryptography (or something like that) with implementations of popular algorithms such as SHA1 and Rijndaels, which are very easy to use. There are also some static classes in the framework that make it as simple as StaticClass.Encrypt(<algorithm>, text).
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
2K
Replies
86
Views
3K
Replies
69
Views
11K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 397 ·
14
Replies
397
Views
22K
Replies
16
Views
3K
  • · Replies 102 ·
4
Replies
102
Views
4K
  • · Replies 49 ·
2
Replies
49
Views
5K