Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkoichik <koichik@improvement.jp>2011-07-24 10:56:23 +0400
committerkoichik <koichik@improvement.jp>2011-07-25 18:57:25 +0400
commitd32971a8cbc0ac6ab7a044e25ff400587bc1294f (patch)
tree97ed4f8f1f6a9939c95a10727ad896b75598e3f8 /lib
parentdeb100fb176a40d59d4b961be7aef90ef7361b52 (diff)
Doc improvements and change argument name.
Fixes #1318.
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index 25aceaff4c6..c7bb57b7f49 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -110,8 +110,8 @@ exports.createHmac = function(hmac, key) {
exports.Cipher = Cipher;
-exports.createCipher = function(cipher, key) {
- return (new Cipher).init(cipher, key);
+exports.createCipher = function(cipher, password) {
+ return (new Cipher).init(cipher, password);
};
@@ -121,8 +121,8 @@ exports.createCipheriv = function(cipher, key, iv) {
exports.Decipher = Decipher;
-exports.createDecipher = function(cipher, key) {
- return (new Decipher).init(cipher, key);
+exports.createDecipher = function(cipher, password) {
+ return (new Decipher).init(cipher, password);
};