XTEA Cryptography Algorithm

  • Thread starter Diego Bernardes
  • Start date
D

Diego Bernardes

Some one know if ruby has any implementation of XTEA algorithm?

I have a hardware connect on a serial port that uses this cryptography.
 
A

Axel Etzold

-------- Original-Nachricht --------
Datum: Fri, 4 Sep 2009 22:16:05 +0900
Von: Diego Bernardes <[email protected]>
An: (e-mail address removed)
Betreff: XTEA Cryptography Algorithm
Some one know if ruby has any implementation of XTEA algorithm?

I have a hardware connect on a serial port that uses this cryptography.

Dear Diego,

you could easily adapt the C code given on the Wikipedia page.
Ruby supports bit-level operations on numbers, and the operator symbols for those operations are the same as in C ...
or you could use ffi (http://blog.headius.com/2008/10/ffi-for-ruby-now-available.html) to use Ruby to wrap the C code given there right away.

Best regards,

Axel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

C++ cryptography new library 0
Algorithm 1
C# .NET Serial Port hang on close function. 1
Quick sort algorithm 1
Encryption algorithm 1
Output confusion 2
Just an Idea 0
Optimize a discovery algorithm 15

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,459
Latest member
Vida00R129

Latest Threads

Top