# Cryptography Libraries

**URL:** <https://www.ruby-forum.com/t/cryptography-libraries/118998>\
**Category:** Ruby\
**Created:** [November 2, 2007, 1:26am UTC](https://www.ruby-forum.com/t/cryptography-libraries/118998 "2007-11-02T01:26:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thefed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@thefed](https://www.ruby-forum.com/u/thefed)\
**Post date:** [November 2, 2007, 1:26am UTC](https://www.ruby-forum.com/t/cryptography-libraries/118998/1 "2007-11-02T01:26:22Z")

</div>

Hey!

So we aren’t all getting scared, all I did was switch emails - this  
is Ari B…

Anyways, let’s cut to the chase -

What are some good cryptography libraries, for Diffie Hellman, TEA,  
RSA, etc. ?

I saw the Pure Ruby library (kudos to that!), but was looking for  
speed as a factor. That means a C extension is probably necessary.

If all else fails, I’m looking to use ruby2cext to make the Pure Ruby  
library a Pure Ruby Library in C.

That should be pretty nice, i might add!

Thanks,  
Ari B.

---

<div class="post-metadata">

**Author:** ![thefed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@thefed](https://www.ruby-forum.com/u/thefed)\
**Post date:** [November 2, 2007, 6:26am UTC](https://www.ruby-forum.com/t/cryptography-libraries/118998/2 "2007-11-02T06:26:06Z")

</div>

On Fri, Nov 02, 2007 at 09:24:12AM +0900, thefed wrote:

> I saw the Pure Ruby library (kudos to that!), but was looking for  
> speed as a factor. That means a C extension is probably necessary.
> 
> If all else fails, I’m looking to use ruby2cext to make the Pure Ruby  
> library a Pure Ruby Library in C.
> 
> That should be pretty nice, i might add!
> 
> Thanks,  
> Ari B.

Once the next rubygems comes out I’ll be releasing a ruby extension  
ruby-libtommath (needs mkrf) and then start work on ruby-libtomcrypt  
which will probably satisfy much of this need.

If you want a TEA C extension, I can see what I can whip up from one of  
the existing C implementations of TEA.

enjoy,

-jeremy

---

<div class="post-metadata">

**Author:** ![thefed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@thefed](https://www.ruby-forum.com/u/thefed)\
**Post date:** [November 2, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/cryptography-libraries/118998/3 "2007-11-02T21:10:12Z")

</div>

I’ve been using Ruby’s OpenSSL library to create and verify RSA digital  
signatures. I’ve been having issues because there is very little to no  
documentation. However, my company been posting blogs on how we’ve used  
them. Here are some of the blogs:

Digital Signature Example  
[http://blog.internautdesign.com/2007/10/12/openssl](http://blog.internautdesign.com/2007/10/12/openssl)

Creating a public key from modulus and exponent for digital signature  
verification  
[http://blog.internautdesign.com/2007/11/2/ruby-openssl-rsa-public-key-from-modulus-and-exponent](http://blog.internautdesign.com/2007/11/2/ruby-openssl-rsa-public-key-from-modulus-and-exponent)

Regards,  
Rodney Carvalho  
[http://www.internautdesign.com](http://www.internautdesign.com)
