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.

···

--
Posted via http://www.ruby-forum.com/.

-------- Original-Nachricht --------

Datum: Fri, 4 Sep 2009 22:16:05 +0900
Von: Diego Bernardes <di3go.bernardes@gmail.com>
An: ruby-talk@ruby-lang.org
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.
--
Posted via http://www.ruby-forum.com/\.

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

···

--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter Aktuelle Nachrichten aus Politik, Wirtschaft & Panorama | GMX

The implementation I've used in the past came from here -
http://www.jools.net/projects/ruby/crypto/

For some reason Firefox doesn't like that site at the moment (claims it's a
phising site or something) - so here is a gist with the module

John

···

On Fri, Sep 4, 2009 at 6:16 AM, Diego Bernardes <di3go.bernardes@gmail.com>wrote:

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

I have a hardware connect on a serial port that uses this cryptography.
--
Posted via http://www.ruby-forum.com/\.