update
parent
6740bed15b
commit
54a8feb5ca
|
@ -252,7 +252,7 @@ crypto.hmac('md5', '123456', 'sdfvkjfhd')
|
||||||
#### cipher(mode, data[, key, inEncode, outEncode])
|
#### cipher(mode, data[, key, inEncode, outEncode])
|
||||||
- mode `<String>`
|
- mode `<String>`
|
||||||
- data `<String>` | `<Buffer>`
|
- data `<String>` | `<Buffer>`
|
||||||
- key `<String>` 可选, 默认为 `<Buffer d7 2c 87 d0 f0 77 c7 76 6f 29 85 df ab 30 e8 95>`, 即 `crypto.scryptSync('', '', 16)` 的结果
|
- key `<String>` 可选, 默认为 `<Buffer 0 0 0 ... 0>`, 即 `Buffer.alloc(16)` 的结果
|
||||||
- inEncode '<String>' 可选
|
- inEncode '<String>' 可选
|
||||||
- outEncode '<String>' 可选,默认返回Buffer对象
|
- outEncode '<String>' 可选,默认返回Buffer对象
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue