diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2018-03-30 18:50:38 +0300 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2018-03-30 18:50:38 +0300 |
commit | b9ea5b5ced991afa5b73c3f1e87bea653772b57a (patch) | |
tree | a07536abdd1d255b946d48fae3df4552090fb49f /nginx/ngx_http_js_module.c | |
parent | dafef5a9bb3893caeb34501aa1eff44ba03c3bdf (diff) | |
download | njs-b9ea5b5ced991afa5b73c3f1e87bea653772b57a.tar.gz njs-b9ea5b5ced991afa5b73c3f1e87bea653772b57a.zip |
Nodejs style crypto methods.
var crypto = require('crypto')
var hash = crypto.createHash(<alg>)
available algorithms: 'md5', 'sha1', 'sha256'.
hash.update(<data>)
hash.digest([<encoding>])
available encodings: 'hex', 'base64'.
var hmac = crypto.createHmac(<alg>, <key>)
available algorithms: 'md5', 'sha1', 'sha256'.
hmac.update(<data>)
hmac.digest([<encoding>])
available encodings: 'hex', 'base64'.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
0 files changed, 0 insertions, 0 deletions