Skip to content

Encryption and Decryption code for PyCript Extensions with common encryption logic

License

Notifications You must be signed in to change notification settings

Anof-cyber/PyCript-Template

Repository files navigation

PyCript-Template

Encryption and Decryption code for Pycript Extensions with common encryption logic.

Support

Documentation

70686099-3855f780-1c79-11ea-8141-899e39459da2

Requirements

  • Node JS + NPM / Java / Python
  • This are Demo Script template, PyCript v0.4 does not have language restrictions you can use any language like C, C++, Go, Swift, Python etc.

Installation

JavaScript

npm install

Python

pip install -r requirements.txt

Java

  • Java source should compiled to jar file for PyCript
  • make sure to add the JSON library

Go Lang

  • You don't need external lib, you can run it directly but recommended to compile it.

Powershell

  • Windows system is required

Bash Script

  • Linux System with below library
sudo apt install jq openssl

Code Added

  • Custom Request Type - Fetch Key and IV from Headers
  • Custom Body Type - Fetch Key and IV from Request Body
  • Custom Request(Edit Header) Type - Allow you to update the header to modify the request signature
  • AES Encryption ECB 128
  • AES Decryption ECB 128
  • AES Encryption CBC 128
  • AES Decryption CBC 128