easy-encrypion-decryption
v1.0.0
Published
Easy Encryption Decryption is a versatile npm package designed to streamline data security for developers. With its simple yet powerful encryption and decryption algorithm, this package empowers users to safeguard sensitive information effortlessly. Wheth
Downloads
4
Maintainers
Readme
Easy-Encryption-Decryption
Easy Encryption Decryption is a versatile npm package designed to streamline data security for developers. With its simple yet powerful encryption and decryption algorithm, this package empowers users to safeguard sensitive information effortlessly. Whether encrypting user credentials, protecting sensitive documents, or securing communication channels, Easy Encryption Decryption offers a seamless solution. Developers can integrate this package into their projects with ease, ensuring robust data protection without the complexity. Enjoy peace of mind knowing your data is encrypted and decrypted with confidence using Easy Encryption Decryption.
Installation
Install Easy-Encryption-Decryption with npm
npm install easy-encrypion-decryption
Usage
Import the Function and use it in your Javascript project:
const EasyEncryption = require('easy-encrypion-decryption')
EasyEncryption.Encrypt("Hello I am a Learner")
This function will return an encrypted value of whatever string you pass to it, as in my case i am passing "Hello I am a Learner".
const EasyEncryption = require('easy-encrypion-decryption')
EasyEncryption.Decrypt("-}=}cyyu Ms@@=0a13")
This is a function designed to decrypt encrypted text generated by the same algorithm. It accepts at least one argument: the encrypted text. When provided with only one argument, it returns the decrypted string.
const EasyEncryption = require('easy-encrypion-decryption')
EasyEncryption.Decrypt("-}=}cyyu Ms@@=0a13","I am a learNer")
If a second string argument is provided, which is believed to be the decrypted text, it returns true if the comparison matches the decrypted text, and false otherwise.