You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***buffer** - data for encrypting, may be string, Buffer, or any object/array. Arrays and objects will encoded to JSON string first.
75
+
***source_encoding** - source encoding, works only with string buffer. Can take standard Node.js Buffer encodings (hex, utf8, base64, etc). *Utf8* by default.
76
+
***output_encoding** - encoding for output result, can also take 'buffer' to return Buffer object. Default *base64*.
77
+
78
+
```js
79
+
key.decrypt(buffer, [encoding]);
80
+
```
81
+
82
+
***buffer** - data for decrypting. Takes Buffer object.
83
+
***encoding** - encoding for result string. Can also take 'buffer' for raw Buffer object, or 'json' for automatic JSON.parse result.
84
+
66
85
67
86
## Contributing
68
87
69
88
Questions, comments, bug reports, and pull requests are all welcome.
0 commit comments