jproulx / crypto-js

Automatically exported from code.google.com/p/crypto-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TwoFish implementation for CryptoJS

GoogleCodeExporter opened this issue · comments

I have ported an implementation of the TwoFish algorithm from BouncyCastle to 
CryptoJS here:

https://github.com/mitchellrj/KeePassJS/blob/master/bouncycastle/twofish.js

It is under the MIT license, so if this fits with your current New BSD license, 
please feel free to include it in your next release.

Original issue reported on code.google.com by richard....@gmail.com on 18 Sep 2012 at 9:22

Original comment by Jeff.Mott.OR on 18 Sep 2012 at 9:43

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect
how to implementatin on add-ons mozilla firefox?

Original comment by riza.arm...@gmail.com on 14 Aug 2013 at 2:24

Ok, there is a bug in your version

k64Cnt = this._key.words.length / 2;

this counts "dead" bytes in the key

you should use something like that:

k64Cnt = this._key.sigBytes / 8;



Original comment by likha...@gmail.com on 7 Dec 2013 at 5:47

Fixed. Thanks for your feedback!

Original comment by richard....@gmail.com on 9 Dec 2013 at 4:07