need help on encryption and decryption

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
11max11
Posts: 1
Joined: Tue Dec 11, 2007 5:07 pm
Contact:

need help on encryption and decryption

Post by 11max11 »

hihi..
can anyone give me information of encryption and decryption source code..
because i'm a newbie in MPLAB IDE...thx

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello

A very basic form of encryption could be to swap the nibbles in a byte.

Eg 00001111 becomes 11110000

This method can be used up to a point - i.e. you can use more then one conversion.

Eg 010101010 becomes 01101001 etc

As long as you know how you scrambled the data then you can repeat the process in reverse to retreive the data.

If you require a industrial level of encryption then use google to look up "PGP " (pretty good privacy) or "public private key encryption".

Post Reply