Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A C++ node.js module that does DES encryption and actually works (node's crypto module didn't work.)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 discovery
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 binding.gyp
Octocat-spinner-32 package.json
Octocat-spinner-32 readme.txt
Octocat-spinner-32 wscript
readme.txt
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
Something went wrong with that request. Please try again.