Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

onedionys-data-encryption-utilities

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onedionys-data-encryption-utilities

One Dionys (Data Encryption Utilities) - Functions to securely encrypt and decrypt data in web applications, protecting sensitive user data.

  • 5.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Welcome to One Dionys - Data Encryption Utilities! 👋

Functions to securely encrypt and decrypt data in web applications, protecting sensitive user data. 💖

💾 Requirements

  • Web Browser - Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].
  • Internet - Because many use CDN and to make it easier to find solutions to all problems.

🎯 How To Use

Example Syntax
const { encrypt, decrypt } = require('data-encryption-utilities');

const originalData = 'Hello, world!';
const key = 'secretKey';

// Encrypt data
const encryptedData = encrypt(originalData, key);
console.log('Encrypted Data:', encryptedData);

// Decrypt data
const decryptedData = decrypt(encryptedData, key);
console.log('Decrypted Data:', decryptedData);
Explanation
  • This package provides utility functions for encrypting and decrypting data using AES-256-CBC encryption algorithm. The encrypt function takes the data and a secret key as input, encrypts the data, and returns the encrypted result. The decrypt function takes the encrypted data and the same secret key, decrypts the data, and returns the original plaintext.
Return Value
  • encrypt(data, key): Returns the encrypted data as a hexadecimal string.
  • decrypt(data, key): Returns the decrypted data as a UTF-8 encoded string.

📆 Release Date

  • v1.0.0 : 18 March 2024
  • v1.0.1 : 18 March 2024
  • v1.0.2 : 31 March 2024
  • v5.0.0 : 31 March 2024

🧑 Author

  • Facebook : Oned Ionys
  • Instagram : @onedionys
  • Twitter : @onedionys
  • LinkedIn : @onedionys

📝 License

  • Copyright © 2024 One Dionys
  • One Dionys - Data Encryption Utilities is an open source project licensed under the MIT license

☕️ Suppport & Donation

Love One Dionys - Data Encryption Utilities? Support this project by donating or sharing with others in need.

Made with ❤️ One Dionys

Keywords

FAQs

Package last updated on 31 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc