TEA Encryption


Closed Thread
Results 1 to 12 of 12

Thread: TEA Encryption

Hybrid View

  1. #1
    rastan's Avatar
    rastan Guest


    Did you find this post helpful? Yes | No

    Default

    ok good idea dwayne. ill give it a go.

    thanks,

    phil

  2. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Rastan,

    One other thing...(explaining the code word);
    IN these pic chips, you pass a number (my last example uses the value 1).

    Sometimes you may want to pass a code word.

    What you can do, is a kind of CRC on that word, and pass THAT number.

    Example:
    CodeWord ="SecretWord"
    PassingValue var byte;

    PassingValue=0;
    For counter=1 to CodeWordLength
    PassingValue=PassingValue+CodeWord[counter]
    Next counter

    What this does, is add up each individual character in CodeWord.
    if it goes above 255, it automatically rolls over to zero and starts over
    again. When you get done adding up your characters out of your SecretWord, you will have a number (CRC) between 0 and 255.

    Another (more complicated to some degree, but just as easy), is to
    switch the hex numbers around...
    $48 = $84
    $12 = $21
    ....
    ...

    But passing a number insures 254 different possible codes.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. encryption ?
    By RAYMON in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th February 2009, 15:25
  2. xtea encryption
    By toalan in forum Off Topic
    Replies: 9
    Last Post: - 2nd May 2008, 22:13
  3. AES Encryption on PIC16F/18F
    By Emerson in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 17th November 2005, 01:45
  4. Encryption in pics - why?
    By rastan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2005, 16:23
  5. TEA encryption and embedding in PBP
    By rastan in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 19th February 2005, 02:38

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts