LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-01-2005, 07:32 AM   #1
craigs1987
Member
 
Registered: May 2004
Location: England
Distribution: SuSE linux 10.0 OSS
Posts: 78

Rep: Reputation: 15
Encryption


I'm busy studying C and C++ in my spare time and have managed to write a basic XOR encryption program. I was wondering if I could give the output of a single word that has been encrypted and ask someone to crack it and return to me the original input word (along with an explanation of how it was acheived). And before anyone laughs at me for this, I am trying to learn here.
Thanks in advance,
Craig.

Heres the output file that was created by my program, main.out
 
Old 05-01-2005, 11:47 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
iirc , basic XOR means replacing 0 with 1 and vice versa ie 1011 => 0100.
To unencrypt, apply the same rule to the result above...
This is a symmetric encryption/decryption method.
For a good explanation of symmetric and asymmetric encryption, see the manual here: http://www.gnupg.org/
Also has code for you to use.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encryption shaf.rahman Red Hat 1 04-19-2005 02:59 PM
encryption dr_zayus69 Linux - Software 2 11-28-2004 11:03 PM
Encryption AMMullan Programming 7 02-09-2004 12:53 PM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM
Anyone know anything about encryption? BrianK Linux - General 1 07-09-2002 10:55 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration