1.1.2 • Published 4 years ago

@wsy998/jsencrypt v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

jsencrypt

一个基于crypto-js和jsencrypt的加密库 ##加密思路 思路来自https://www.zybuluo.com/octopus/note/1398009

加载方式

使用AMD 方法加载

define(['jsencrypt'],function(encrypt){
})

使用es6 方法加载

import jsencrypt from '@wsy998/jsencrypt'

使用CommonJS 加载

encrypt=require('jsencrypt')

使用方法

设置公钥

encrypt.setPublicKey()

设置Iv

encrypt.setIv()

加密字符串

encrypt.encrypt()

1.1.1

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.0

4 years ago