mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-12-22 03:56:29 +00:00
version bump
This commit is contained in:
parent
bb913e30fb
commit
c52623da0c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "occulto",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "crypt utility",
|
||||
"main": "./lib/index.js",
|
||||
"types": "./lib/index.d.ts",
|
||||
|
22
src/index.ts
22
src/index.ts
@ -1,25 +1,5 @@
|
||||
import AES from './AES'
|
||||
import AES from './AES'
|
||||
import RSA from './RSA'
|
||||
//
|
||||
// (async () => {
|
||||
//
|
||||
// const text = `lorem ipsums`
|
||||
// const key = `test`
|
||||
//
|
||||
// // Asymetric
|
||||
// const pair = await RSA.gen()
|
||||
// const ae = RSA.encrypt(text, pair.pub)
|
||||
// console.log(ae)
|
||||
// const ad = RSA.decrypt(ae, pair.prv)
|
||||
// console.log(ad)
|
||||
//
|
||||
// // Symmetric
|
||||
// const se = AES.encrypt(text, key, AES.Ciphers.AES_256_GCM)
|
||||
// console.log(se)
|
||||
// const sd = AES.decrypt(se, key)
|
||||
// console.log(sd)
|
||||
//
|
||||
// })()
|
||||
|
||||
export default {
|
||||
RSA,
|
||||
|
Loading…
Reference in New Issue
Block a user