1.0.0 • Published 7 years ago
egg-crypto v1.0.0
egg-crypto
crypto-js plugin for Egg.js.
Install
$ npm i egg-crypto --saveUsage
// app/controller/home.js
'use strict';
const Controller = require('egg').Controller;
class HomeController extends Controller {
async index() {
this.ctx.body = this.ctx.crypto.MD5('Hi, egg-crypto');
}
}
module.exports = HomeController;List
md5basha1basha256basha224basha512basha384basha3ripemd160
hmac-md5hmac-sha1hmac-sha256hmac-sha224hmac-sha512hmac-sha384hmac-sha3hmac-ripemd160
pbkdf2
aestripledesrc4rabbitrabbit-legacyevpkdf
format-opensslformat-hex
enc-latin1enc-utf8enc-hexenc-utf16enc-base64
mode-cfbmode-ctrmode-ctr-gladmanmode-ofbmode-ecb
pad-pkcs7pad-ansix923pad-iso10126pad-iso97971pad-zeropaddingpad-nopadding
Questions & Suggestions
Please open an issue here.
License
1.0.0
7 years ago