Fast files encryption (AES-GCM) package and command-line tool built for speed with Go ⚡
For command-line
go install https://github.com/mrf345/safelock-cli@latest
For packages
go get https://github.com/mrf345/safelock-cli@latest
Or using one of the latest release binaries here
Encrypt a path with default options
safelock-cli encrypt path_to_encrypt encrypted_file_path
And to decrypt
safelock-cli decrypt encrypted_file_path decrypted_files_path
[!NOTE]
If you want it to run silently with no interaction
echo "password123456" | safelock-cli encrypt path_to_encrypt encrypted_file_path --quiet
With the default settings it should be about twice as fast as gpgtar
> du -hs testing/
1.2G testing/
> time gpgtar --encrypt --output testing.gpg -r user testing/
real 0m42.710s
user 0m41.148s
sys 0m7.943s
> time echo "testing123456" | safelock-cli encrypt testing/ testing.sla --quiet
real 0m20.697s
user 0m25.355s
sys 0m9.647s
[!TIP]
You can get even faster performance using the--sha256
flag (less secure)
> time echo "testing123456" | safelock-cli encrypt testing/ testing.sla --quiet --sha256
real 0m16.043s
user 0m17.550s
sys 0m8.707s
And no major file size difference
> ls -lh --block-size=MB testing.gpg
-rw-rw-r-- 1 user user 1247MB Aug 10 12:15 testing.gpg
> ls -lh --block-size=MB testing.sla
-rw-rw-r-- 1 user user 1273MB Aug 10 11:30 testing.sla