How to use the jsencrypt.JSEncrypt function in jsencrypt

To help you get started, we’ve selected a few jsencrypt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github comindware / core-ui / src / lib.js View on Github external
import 'innersvg-polyfill';
import jsencrypt from 'jsencrypt';

window.numeral = numeral_;

window.Backbone.Model = CoreModel;
window.Backbone.Collection = CoreCollection;

const api = {
    moment: moment_,
    Handlebars: Handlebars_,
    _: window._,
    Marionette: Marionette_,
    numeral: numeral_,
    codemirror: codemirror_,
    JSEncrypt: jsencrypt.JSEncrypt,
    autosize
};

const moment = api.moment;
const Handlebars = api.Handlebars;
const _ = window._;
const Marionette = Marionette_;
const numeral = api.numeral;
const codemirror = api.codemirror;

export default api;
export { moment, Handlebars, Marionette, numeral, codemirror, autosize };
github inspursoft / board / src / ui-adminserver / src / app / configuration / others / others.component.ts View on Github external
encryptStr(password: string) {
    this.publicKey = sessionStorage.getItem('pubKey');
    const encrypt = new JsEncryptModule.JSEncrypt();
    encrypt.setPublicKey(this.publicKey);
    const encrypted = encrypt.encrypt(password.trim());
    this.others.boardAdminPassword = encrypted;
  }

jsencrypt

A Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation.

MIT
Latest version published 2 years ago

Package Health Score

58 / 100
Full package analysis