views:

234

answers:

3

I'm wondering if anyone has written or come across any implementations of bcrypt in JavaScript. I'm not against writing the code myself but if someone with a stonger background in cryptography has already written one why reinvent the wheel? Especially considering I'd probably come up with a shoddy wheel.

[edit]:

Following the links provided I was able to hack up a version. Its much slower then I expected.

I create a google code page for this and will try to increase the speed in the next few weeks.

http://code.google.com/p/javascript-bcrypt/

+2  A: 

As far as I'm aware, there is no JavaScript implementation of bcrypt. There are, however, a few JavaScript implementations of Blowfish:

That should help get you started. If you're going to use one of the latter three, use the third. I mentioned the other two mainly for historical purposes.

Christopher Parker
Thanks for the link, I ended up modifying the last one to make it work. I'd up vote you if I could
Nevins
A: 

Whoops, I typed that before I noticed that the link is for the version that you wrote and you mentioned it in your question. And I posted without registering so I can't edit it. Sorry about the noise, but thanks for coding that up, it is handy.

bugstomper