JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q39123F
  • License MIT

first npm package//dont try to use this

Package Exports

  • rsakt
  • rsakt/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rsakt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rsa_xml_to_pem

//js
const {Rsakt} = require('rsakt')
//ts
import {Rsakt} from 'rsakt'

const c = new Rsakt(publicKey, privateKey);

console.log(c.getAll())

const option = {
    public_xml:publicKey,
    private_xml:privateKey,
}

const d = new Rsakt(option);

console.log(d.getAll())

const muyaho = d.encrypt("muyaho");

console.log(muyaho);

const muyaho2 = c.decrypt(muyaho);

console.log(muyaho2)