1.0.2 • Published 3 years ago

tokencrypto v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

What is this?

This Encryption and Decryption is done using Cryptojs Library Get your data Encrypted/Decrypted for your app

Installation

npm i tokencrypto --save

Then...

import { tokenEncrypterAES , tokenDecrypterAES , tokenEncrypterDES , tokenDecrypterDES , tokenEncrypterTripleDES , tokenDecrypterTripleDES , tokenEncrypterRabbit , tokenDecrypterRabbit , tokenEncrypterRC4 , tokenDecrypterRC4 , tokenEncrypterRC4Drop , tokenDecrypterRC4Drop } from 'tokencrypto';

tokenEncrypterAES(Data , Secret key)
tokenDecrypterAES(Encrypted Data,Secret key used while encrypting)
tokenEncrypterDES(Data , Secret key)
tokenDecrypterDES(Encrypted Data,Secret key used while encrypting)
tokenEncrypterTripleDES(Data , Secret key)
tokenDecrypterTripleDES(Encrypted Data,Secret key used while encrypting)
tokenEncrypterRabbit(Data , Secret key)
tokenDecrypterRabbit(Encrypted Data,Secret key used while encrypting)
tokenEncrypterRC4(Data , Secret key)
tokenDecrypterRC4(Encrypted Data,Secret key used while encrypting)
tokenEncrypterRC4Drop(Data , Secret key)
tokenDecrypterRC4Drop(Encrypted Data,Secret key used while encrypting)

Options

Encryption and Decryption have these options:

  • tokenEncrypterAES - ('hello','SECRET_KEY')
  • tokenDecrypterAES - ('Encrypted_data','SECRET_KEY')
  • tokenEncrypterDES - ('hello','SECRET_KEY')
  • tokenDecrypterDES - ('Encrypted_data','SECRET_KEY')
  • tokenEncrypterTripleDES - ('hello','SECRET_KEY')
  • tokenDecrypterTripleDES - ('Encrypted_data','SECRET_KEY')
  • tokenEncrypterRabbit - ('hello','SECRET_KEY')
  • tokenDecrypterRabbit - ('Encrypted_data','SECRET_KEY')
  • tokenEncrypterRC4 - ('hello','SECRET_KEY')
  • tokenDecrypterRC4 - ('Encrypted_data','SECRET_KEY')
  • tokenEncrypterRC4Drop - ('hello','SECRET_KEY')
  • tokenDecrypterRC4Drop - ('Encrypted_data','SECRET_KEY')
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago