NodeJS 中文文档 V0.2.3algorithm 指定算法建立并且返回一个哈希对象,可以用来产生哈希摘要。 algorithm 参数依赖于 node 运行平台上 OpenSSL 所支持的有效算法。例如 sha1,md5,sha256,sha512等,在最近发 布的版本中, openssl list-message-digest-algorithms 将显示有效的算法摘要。 hash.update(data) hash.update(data) digest(encoding='binary') hash.digest(encoding='binary') hash.digest(encoding='binary') 计算所有传递来数据的哈希摘要。编码可以是'hex','binary'或者'base64'。 crypto.createHmac(algorithm, crypto.createHmac(algorithm, crypto.createHmac(algorithm digest(encoding='binary') hmac.digest(encoding='binary') hmac.digest(encoding='binary') 计算所有传递来数据的 hmac 摘要。编码可以是'hex','binary'或者'base64' 。 crypto.createCipher(algorithm, crypto.createCipher(algorithm, crypto0 码力 | 62 页 | 542.14 KB | 1 年前3
Node.js Manual & Documentation版本所支持的算法。例如: 'sha1', 'md5', 'sha256', 'sha512'等。在近期发行的版本中,openssl list-message-digest-algorithms 会显示这些可用的摘要算法。 hash.update(data) Updates the hash content with the given data. This can be called many times of the passed data to be hashed. The encoding can be 'hex', 'binary' or 'base64'. 计算所有传入数据的 hash 摘要。参数 encoding(编码方式)可以为'hex', 'binary' 或者'base64'。 crypto.createHmac(algorithm, key) Creates and all of the passed data to the hmac. The encoding can be 'hex', 'binary' or 'base64'. 计算所有传入数据的 hmac 摘要。参数 encoding(编码方式)可以为'hex', 'binary' 或者'base64'。 crypto.createCipher(algorithm, key) Creates and0 码力 | 153 页 | 1.21 MB | 1 年前3
Node.js在YunOS中的最佳实践 Node.js在YunOS中的最佳实践 叶敬福 1 摘要 • YunOS: 万物互联 • YunOS选择Node.js • Node.js在YunOS中的最佳实践 – 对IO优先的Looper机制的改造和优化 – SAB + Worker机制的实践 – 性能优化的实践 2 3 万物互联 4 Cloud App应用场景化 5 CloudApp0 码力 | 20 页 | 1.37 MB | 1 年前3
共 3 条
- 1













