medto
v2.0.2
Published
You can encrypt, decrypt and do many things with this package.
Downloads
9
Maintainers
Readme
INSTALLATION:
(npm i medto --save) or (npm install medto) or (npm i medto@version) or (npm i medto@latest)
REACT JS / REACT NATIVE
import isAuth from "./isAuth"
import {xen, xdc, enc, dec} from 'medto'
let IsDevice = () => {
if (isAuth() === true) {
<!-- THE XOR - WAY OF ENCRYPTION -->
let xenc = xen(`Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti voluptatem consectetur enim similique sapiente, aut id corporis nesciunt veniam fuga cupiditate pariatur! Illum laboriosam tenetur iste quia vel dolorem aspernatur?`, 'Mezy')
console.log(xdc(xenc, 'Mezy'))
<!-- THE TWISTED WAY / MIXED WITH XOR AND SHA -->
let en = enc(`Lorem, ipsum dolor sit amet consectetur adipisicing elit. Corrupti voluptatem consectetur enim similique sapiente, aut id corporis nesciunt veniam fuga cupiditate pariatur! Illum laboriosam tenetur iste quia vel dolorem aspernatur?`, 'Mezy')
console.log(dec(en, 'Mezy'))
}
else {
return false
}
}
export default IsDevice
Do the same thing for nodejs as well.
let encrypt = enc(text, key)
let decrypt = dec(encryptedtext, key)
let enc = xen(text, key)
let dec = xdc(encryptedtext, key)
DEVELOPER
Medzy Amara
FOLLOW ME