This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Boom's profile picture

BoomCrypt - a simple file encryptor

Started by Boom, 20 March 2017 - 12:38 AM
Boom #1
Posted 20 March 2017 - 01:38 AM
BoomCrypt

Not to be confused with bcrypt, a hashing function.


Do you have a really important file that you need to keep secret?
Worried that your competitors might steal your precious program that you have been working on?
Or you just want to encrypt a file to send it via rednet/pastebin.

If so, BoomCrypt is for you!

BoomCrypt is a simple-to-use file encryptor. Just give it a file and a password and it will do that hard work for you!

Get it now!

pastebin run sAte4neg


Screenshots:

Spoiler




BoomCrypt use the following APIs:

Spoiler

SHA-256 by Anavrins

AES by SquidDev

Base64 and CSPRNG by KillaVanilla

JSON by ElvishJerricco



Known issues:

Spoiler

Encrypting or decrypting a large file will throw an error related about yielding

Edited on 11 April 2017 - 04:13 AM
Boom #2
Posted 11 April 2017 - 06:10 AM
A new version of BoomCrypt has been released!

(version 1.1b2)

Changes:

Spoiler

Fixed file integrity checksum not working at all

BoomCrypt now cleans up after itself (unloading API after using them)

Added password requirements (you cannot use blank passwords anymore)

You can now define the PBKDF2 iterations (speed vs. security tradeoff)

Edited on 19 April 2017 - 11:47 PM
KidBrine #3
Posted 15 April 2017 - 07:46 PM
The part about yielding means you need t have it sleep() once in a while
Boom #4
Posted 20 April 2017 - 01:44 AM
-snip-

Well, I just found out that the AES implementation I'm using is at fault here…. it doesn't yield while encrypting.
I will try to fix it though.
Boom #5
Posted 22 April 2017 - 04:07 PM
A new version of BoomCrypt has been released!
(version 1.2)
Changes:
SpoilerAPIs are now put inside a folder hidden away from the end user. Gotta keep the root directory clean
Added an HMAC routine into the key generation function.
Edited on 22 April 2017 - 04:58 PM