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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top