A simple Typescript code that uses DES to encrypts/decrypts a single block of 64 bits. There are two examples in this code, and verbose option is set to true by default.
Verbose option shows you the output of the following:
- Initial permutation
- Subkey for each round
- Output of each round
sudo apt update && sudo apt install npm -y
sudo npm i -g n
sudo n latest
sudo npm i -g typescript
sudo npm i -g yarn
git clone https://github.com/MangoCubes/des.git
cd des
yarn test