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

python-aes256

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-aes256

ENCRYPT DECRYPT AES256

  • 1.0.5
  • PyPI
  • Socket score

Maintainers
1

ENCRYPT DECRYPT AES 256bit


Install to your environment : > pip install python-aes256

How to use :

Test using python shell :
> python manage.py shell
> from pyaes256 import PyAES256
> a = PyAES256()
> password = 'g_7me8rl2m#a_h2oresgt2#ni=3_4*!ai*=rtsq)yi!g7_5-51'     

Encryption Process :
> enc = a.encrypt('Secret Text',password)
> print('Encrypt: ', enc)
    Encrypt: {'url': 'REhHcFNaN0tPSzVqNm50UUJ0T2g5dz09', 'salt': b'k4/Ai7zJKUssvup2c+2+3w==', 'iv': b'34YtC6XqlQjo8UfWc4yNcA=='}

Decryption Process :
> dec = a.decrypt(url='REhHcFNaN0tPSzVqNm50UUJ0T2g5dz09', salt=b'k4/Ai7zJKUssvup2c+2+3w==', iv=b'34YtC6XqlQjo8UfWc4yNcA==', password=password)
> print('Decrypt: ', dec)
    Decrypt: b'Secret Text'
> origin = bytes.decode(dec)
> print('Origin: ', origin)
    Origin: 'Secret Text'

Avalanche Effect :


How to use :

Test using python shell :
> python manage.py shell
> from pyavalanche import PyAvalanche

> chipper1 = 'Nk9iL05BQmM5bnRES3drVGc0NHZRdz09'
> chipper2 = 'Z3VFbi9lWDJtS1B5UzE4TGVsMzRHQT09'
> print('Chipper 1 = ', chipper1)
> print('Chipper 2 = ', chipper2)
> ava = PyAvalanche()
> result = ava.avalanche_effect(chipper1, chipper2)

Print result :
> print(result,'%')
    50.0 %
> print("If more than 50% output bits have changed then the algo have good avalanche effect.")

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