0.1.1 • Published 1 year ago

@creatrix/crypto v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

Crypto

Encrypt and decrypt object or array date with password

example

yarn add @creatrix/crypto
npm i @creatrix/crypto
import {EncryptData,DecryptData} from @creatrix/crypto;

const encrypteddata=EncryptData(
    {id:'1',value:'2'},
    MYPASSWORD,
    base64(true || false),
    isSSR (true || false) // isSSR=false use window.atob(value) || isSSR=true use Buffer.from(value, 'base64').toString('ascii')
) //return encryption data

DecryptData(
    encrypteddata,
    MYPASSWORD,
    base64 (from bae64 true or false),
    isSSR (true | false) // isSSR=false use window.btoa(value) || isSSR=true use Buffer.from(value, 'ascii').toString('base64')
) //{id:'1',value:'2'}
import {base64Decode,base64Encode} from @creatrix/crypto;

const var_encode=base64Encode(string,isSSR=(true || false));// isSSR=false use window.btoa(value) || isSSR=true use Buffer.from(value, 'ascii').toString('base64')
const var_decode=base64Decode(string,isSSR=(true || false)); // isSSR=false use window.atob(value) || isSSR=true use Buffer.from(value, 'base64').toString('ascii')
0.1.0

1 year ago

0.1.1

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

4 years ago

0.0.1

4 years ago