This program implements a CTR/counter mode block cipher (as described in this video) using Typescript & the Deno runtime.
deno run --allow-read --allow-write main.ts
will encrypt the contents of text.txt
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.
Watch this video by Dr. Mike Pound to learn about the algorithm.
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.
MIT