Skip to content
Browse files

added readme

  • Loading branch information...
1 parent b0c8d45 commit 6d149834ff4f6ee89505bae94470017e20530162 @pkrumins committed Nov 30, 2010
Showing with 40 additions and 0 deletions.
  1. +40 −0 readme.txt
View
40 readme.txt
@@ -0,0 +1,40 @@
+This is a node.js module, written in C++, that DES encrypts given buffer
+with the given key. And it actually works, compared to nonsense output that
+node.js's crypto module produced.
+
+It was written by Peteris Krumins (peter@catonmat.net).
+His blog is at http://www.catonmat.net -- good coders code, great reuse.
+
+------------------------------------------------------------------------------
+
+About
+-----
+
+I wrote this module so that I could add VNC Authentication in node-rfb module.
+Don't use it for anything else cause DES is completely broken and can be
+cracked in a day.
+
+
+How to use it?
+--------------
+
+ var ecnrypted_data = require('des').encrypt(key, data_buffer);
+
+Note: data_buffer's length must be a multiple of 8.
+
+
+How to compile?
+---------------
+
+ node-waf configure build
+
+
+------------------------------------------------------------------------------
+
+Have fun encrypting. Not. (Don't use this module for encryption.)
+
+
+Sincerely,
+Peteris Krumins
+http://www.catonmat.net
+

0 comments on commit 6d14983

Please sign in to comment.
Something went wrong with that request. Please try again.