New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

e-encryption

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

e-encryption

Easy encryption and decryption

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

Easy Encryption

Simple data encryption

Installation

Use pip to install the package:

pip install e-encryption

Usage

This package provides an easy way to encrypt information

Please change the environment variable EASY_ENCRYPTION_KEY_LOCATION to assign a location to the file that stores the key.

By default the file key is generated in the home folder.

from e_encryption import EasyEncryption

enc_msg = EasyEncryption.encrypt('This is an encrypted message')
print('Encrypt', enc_msg)
print('Decrypt', EasyEncryption.decrypt(enc_msg))

Setting key file path

from e_encryption import EasyEncryption

key_file = '/home/custom_location.key'
ecryp = EasyEncryption(key_file)
enc_msg = ecryp.encrypt('This is an encrypted message')
print('Encrypt', enc_msg)
print('Decrypt', ecryp.decrypt(enc_msg))

Keywords

FAQs


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