Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/distributive-network/pythonmonkey-crypto-js-fullstack-example


https://github.com/distributive-network/pythonmonkey-crypto-js-fullstack-example

aes javscript python pythonmonkey

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Fullstack AES encryption and decryption app that uses the crypto-js NPM package

This repository contains an example of Python code executing JavaScript code from an NPM package using [PythonMonkey](https://pythonmonkey.io/). The Python code here is a web server that uses the [CryptoJS](https://www.npmjs.com/package/crypto-js) NPM package to encrypt and decrypt messages using AES.

PythonMonkey is a Python library for executing JavaScript code in Python and Python code in JavaScript. Check out our website [https://pythonmonkey.io/](https://pythonmonkey.io/)!

## Demonstration

![249767141-1f0886ea-c3ed-4061-867f-c876f1f8e653](https://github.com/Distributive-Network/PythonMonkey-Crypto-JS-Fullstack-Example/assets/18359452/3f771e4f-a0f5-46ca-93e1-c3d2f8c2bd1d)

## Installation

`$ pip install pythonmonkey`

`$ npm install`

## Running the Example

`$ python3 main.py`

Open [http://localhost:9000/](http://localhost:9000/) on your browser

## Other Examples
For simpler and more comprehensive examples showing off Promises, WebAssembly and more PythonMonkey features, refer to [https://github.com/Distributive-Network/PythonMonkey-examples/](https://github.com/Distributive-Network/PythonMonkey-examples/).