# Keyzcar - cryptographic toolkit

**URL:** <https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533>\
**Category:** Ruby\
**Created:** [September 14, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533 "2008-09-14T13:32:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Kless](https://www.ruby-forum.com/u/Kless)\
**Post date:** [September 14, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533/1 "2008-09-14T13:32:21Z")

</div>

Google has released Keyzcar [1], an open source cryptographic toolkit  
designed to make it easier and safer for developers to use  
cryptography in their applications. Keyczar supports authentication  
and encryption with both symmetric and asymmetric keys.

By now there are Java and Python implementations (C++ coming soon).

[1] [http://www.keyczar.org/](http://www.keyczar.org/)

---

<div class="post-metadata">

**Author:** ![Kless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Kless](https://www.ruby-forum.com/u/Kless)\
**Post date:** [October 15, 2008, 8:40pm UTC](https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533/2 "2008-10-15T20:40:56Z")

</div>

On 14 sep, 11:05, Kless [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Google has released Keyzcar [1], an open source cryptographic toolkit  
> designed to make it easier and safer for developers to use  
> cryptography in their applications.Keyczarsupports authentication  
> and encryption with both symmetric and asymmetric keys.
> 
> By now there are Java and Python implementations (C++ coming soon).
> 
> [1][http://www.keyczar.org/](http://www.keyczar.org/)

It is not really necessary to create a Ruby implementation thanks to  
JRuby [1], which lets to call Java from JRuby [2].

I have created Keyczar4r [3], an example which to let access to the  
Java version. It has been a great experience to knowing that both Ruby  
and Java mix as the charm.

[1] [http://jruby.codehaus.org/](http://jruby.codehaus.org/)  
[2] [http://wiki.jruby.org/wiki/Calling\_Java\_from\_JRuby](http://wiki.jruby.org/wiki/Calling_Java_from_JRuby)  
[3] [http://github.com/kless/keyczar4r/tree/master/lib/keyczar.rb](http://github.com/kless/keyczar4r/tree/master/lib/keyczar.rb)

---

<div class="post-metadata">

**Author:** ![Kless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Kless](https://www.ruby-forum.com/u/Kless)\
**Post date:** [October 15, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533/3 "2008-10-15T20:55:35Z")

</div>

On Thu, Oct 16, 2008, Kless wrote:

> It is not really necessary to create a Ruby implementation thanks to  
> JRuby [1], which lets to call Java from JRuby [2].

Sure it is. I’m not using JRuby. What do I do?

Ben

---

<div class="post-metadata">

**Author:** ![Kless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Kless](https://www.ruby-forum.com/u/Kless)\
**Post date:** [October 16, 2008, 12:11am UTC](https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533/4 "2008-10-16T00:11:03Z")

</div>

On Thu, Oct 16, 2008, Florian G. wrote:

> > Sure it is. I’m not using JRuby. What do I do?
> 
> Wait for the C implementation.

Yeah 🙂 It was a rhetorical question; that was my point.

Ben

---

<div class="post-metadata">

**Author:** ![Kless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Kless](https://www.ruby-forum.com/u/Kless)\
**Post date:** [October 16, 2008, 7:12pm UTC](https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533/5 "2008-10-16T19:12:03Z")

</div>

On Thu, Oct 16, 2008 at 05:34:56AM +0900, Florian G. wrote:

> > 
> 
> Wait for the C implementation.

Or use Ruby Java Bridge[1], I’m using rjb to access work with Lucene  
indexes.  
It works like a charm.

enjoy,

-jeremy

[1] - [http://rjb.rubyforge.org/](http://rjb.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Kless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Kless](https://www.ruby-forum.com/u/Kless)\
**Post date:** [October 16, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533/6 "2008-10-16T23:55:39Z")

</div>

A great use of JRuby would be to access to libraries that in Ruby  
would be too slow. I speak about programs related with a great  
computational cost as audio, image, video, crypto., etc.

Of course that it isn’t necessary to use JRuby for all your code. You  
could have a class in JRuby that access to Java and the rest of your  
code in Ruby.

---

<div class="post-metadata">

**Author:** ![Kless](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@Kless](https://www.ruby-forum.com/u/Kless)\
**Post date:** [October 15, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/keyzcar-cryptographic-toolkit/148533/7 "2008-10-15T22:36:04Z")

</div>

On Oct 15, 2008, at 8:51 PM, Ben B. wrote:

> On Thu, Oct 16, 2008, Kless wrote:
> 
> > It is not really necessary to create a Ruby implementation thanks to  
> > JRuby [1], which lets to call Java from JRuby [2].
> 
> Sure it is. I’m not using JRuby. What do I do?
> 
> Ben

Wait for the C implementation.

Regards,  
Florian
