The first link is decryption. If you reverse the logic you have the encryption side. How encrypted do you need it? What level of person will be tring to unlock the data.
Well, simplest would be something like setting bit 7 of each byte. Next would come xoring each byte with 0x55. If you wanted to, you could swap some bits around - say swap bits 5 and 2. Then there would be using a pseudo random number generator to produce numbers that you xor each byte with.
The list is endless.
Some more information on the data being encrypted would help.
I guess factoring a 100 digit prime number will be a bit beyond a PIC's and your capabilities for the moment.
You could also use a table lookup. For each plain text letter lookup a code letter. The invers table is also easy to construct. For each codetext letter lookup the plaintext letter.
I guess factoring a 100 digit prime number will be a bit beyond a PIC's and your capabilities for the moment.
You could also use a table lookup. For each plain text letter lookup a code letter. The invers table is also easy to construct. For each codetext letter lookup the plaintext letter.
Actually one simple encryption method, which is also very secure, is the use of a 'one time pad'.
Just create and store a random key of bytes equal to the length of the message you wish to send. Give the receiver the random key in advance of sending the message. Exclusive OR the message and the pad and send the encrypted message. The receiver then does an exclusive OR with the encrypted message with his copy of the key and the original message will be recreated.
Use the key only once and the message is uncrackable without access to the key used, now or forever in the future, regardless of Moore's law.
hi anybody tell me the circuit diagram of encryption and decryption of voice in pstn
which works correctly
and also algorithm work in it arslan_369@hotmail.com