Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 1.16 KB

File metadata and controls

57 lines (35 loc) · 1.16 KB

Encryption CLI Examples

This document provides examples of how to use the Encryption CLI tool for various operations including file encryption, decryption, and compression.

File Encryption

Basic Encryption

Encrypt a file using default compression (balanced):

filelock encrypt myfile.txt --password mysecretpassword

Encryption with Different Compression Levels

Maximum Compression

Best for achieving smallest file size:

filelock encrypt largefile.txt --password mysecretpassword --compression max

Fast Compression

Optimal for quick operations with decent compression:

filelock encrypt quickfile.txt --password mysecretpassword --compression fast

No Compression

Use when compression is not needed:

filelock encrypt sensitivefile.txt --password mysecretpassword --compression none

File Decryption

Basic Decryption

Decrypt an encrypted file:

filelock decrypt myfile.txt.flk --password mysecretpassword

Custom Output Location

Decrypt and save to a specific path:

filelock decrypt myfile.txt.flk --password mysecretpassword --output /custom/path/myfile.txt