seanmonstar / gryphon

HTTP Request Signing with Ed25519
Mozilla Public License 2.0
4 stars 2 forks source link

TweetNaCl #3

Open timkuijsten opened 9 years ago

timkuijsten commented 9 years ago

Would it be worth to replace the dependency on js-nacl with tweetnacl?

$ sloc js-nacl/

---------- Result ------------

            Physical :  80220
              Source :  74769
             Comment :  2221
 Single-line comment :  207
       Block comment :  2014
               Mixed :  622
               Empty :  3887

Number of files read :  490

------------------------------

$ sloc tweetnacl/

---------- Result ------------

            Physical :  3630
              Source :  3118
             Comment :  56
 Single-line comment :  46
       Block comment :  10
               Mixed :  6
               Empty :  462

Number of files read :  4

------------------------------
seanmonstar commented 9 years ago

Perhaps, I have not heard of tweetnacl. Looks promising.

timkuijsten commented 9 years ago

Yes, it's a small, readable and auditable reimplementation of NaCl, see http://tweetnacl.cr.yp.to/tweetnacl-20140917.pdf