fixed decypher bug

Fixed a bug with the lib/security.js module, which was bombing out as of node v0.10.0. All middleware tests pass again.