master
yutent 2024-03-11 16:50:44 +08:00
parent 6740bed15b
commit 54a8feb5ca
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ crypto.hmac('md5', '123456', 'sdfvkjfhd')
#### cipher(mode, data[, key, inEncode, outEncode])
- mode `<String>`
- 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>' 可选
- outEncode '<String>' 可选默认返回Buffer对象