rsakt
v0.0.14
Published
first npm package//dont try to use this
Downloads
15
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)