DarylPinto / ctr-block-cipher

Counter mode block cipher using Typescript & Deno

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Block Cipher (Counter Mode)

This program implements a CTR/counter mode block cipher (as described in this video) using Typescript & the Deno runtime.

Encryption

deno run --allow-read --allow-write main.ts

will encrypt the contents of text.txt

Decryption

This algorthim is reversable, meaning that the program can also decrypt a file as long as the same nonce and secretKey are used. Therefore, if you run the command from the previous section again you can decrypt the file you just encrypted.

How does it work?

Watch this video by Dr. Mike Pound to learn about the algorithm.

Algorithm

Requirements

Disclaimer

This is purely a hobbyist's amateur implementation, and should not be used in any production application or on any important files. Use at your own risk.

License

MIT

About

Counter mode block cipher using Typescript & Deno


Languages

Language:TypeScript 100.0%