https://github.com/gabriel-milan/des_example
Example for encryption/decryption using DES. Compatible with Arduino, Node.js and Python
https://github.com/gabriel-milan/des_example
arduino cipher cryptography nodejs python3
Last synced: 2 months ago
JSON representation
Example for encryption/decryption using DES. Compatible with Arduino, Node.js and Python
- Host: GitHub
- URL: https://github.com/gabriel-milan/des_example
- Owner: gabriel-milan
- Created: 2021-04-25T00:46:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-25T11:59:41.000Z (about 5 years ago)
- Last Synced: 2025-06-06T10:09:03.514Z (about 1 year ago)
- Topics: arduino, cipher, cryptography, nodejs, python3
- Language: C++
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DES example
Very short examples of encryption and decryption using DES. This is meant to be compatible with Arduino, Node.js and Python in order to fit most of IoT projects.
## Arduino
On the `arduino/` directory, you'll find a PlatformIO project with the amazing [ArduinoDES](https://github.com/Octoate/ArduinoDES) library and other dependencies described on the `platformio.ini` file (`bblanchon/ArduinoJson@^6.17.3` and `densaugeo/base64@^1.2.0`). The main source file is at `src/main.cpp`.
## Node.js
On the `node/` directory there's a very simple `main.js` file containing both `encrypt` and `decrypt` methods. In order to execute it:
- Install dependencies
```
npm install
```
- Execute
```
npm start
```
## Python
On the `python/` directory there's a simple `main.py` file containing both `encrypt` and `decrypt` methods. In order to execute it:
- Install dependencies
```
python3 -m pip install -r requirements.txt
```
- Execute
```
python3 main.py
```