Encryption program with high performance, high security and rich functionsm.
Supports binding the same physical device for file encryption and decryption.
git clone [email protected]:gaoxianglong/encrypt-dog-new.git
mvn package
alias dog = 'java -Xms1g -Xmx1g -Xmn384m -jar dog-2.0.2.jar'
or
$ wget https://github.com/gaoxianglong/encrypt-dog-new/releases/download/v2.0.2/dog-2.0.2.jar
alias dog = 'java -Xms512m -Xmx512m -Xmn384m -jar dog-2.0.2.jar'
$ dog -h
Welcome to
____ __ _ ___
/ __/__ __________ _____ / /_(_)__ ___ / _ \___ ___ _
/ _// _ \/ __/ __/ // / _ \/ __/ / _ \/ _ \/ // / _ \/ _ `/
/___/_//_/\__/_/ \_, / .__/\__/_/\___/_//_/____/\___/\_, /
/___/_/ /___/
version: 2.0.2-RELEASE
Missing required options: '--secret-key', '--source-file=<source file>'
Usage: encrypt-dog [-dehoV] -k [-k]... [-a=<encryptAlgorithm>] [-t=<storage
path>] -s=<source file>[,<source file>...]... [-s=<source
file>[,<source file>...]...]...
-a, --encrypt-algorithm=<encryptAlgorithm>
The default encryption algorithm is AES. Currently
supported encryption algorithms are AES, DESede (3DES),
and XOR.
-d, --delete The source file is not deleted after the default operation.
-e, --encrypt The default is decryption mode.
-h, --help Show this help message and exit.
-k, --secret-key Both encrypt and decrypt require the same secret key
-o, --only-local Encryption and decryption operations can only be performed
on the same physical device.Only Apple Mac is supported
-s, --source-file=<source file>[,<source file>...]...
Target files that need to be encrypt and decrypt,Wildcards
are supported.
-t, --target-path=<storage path>
The storage path after the operation is stored in the
original path by default.
-V, --version Print version information and exit.
Copyright(c) 2021 - 2031 gaoxianglong. All Rights Reserved.
Files encrypted on computer a can only be decrypted on computer a.
Principle:
WARN:
Deleting or damaging the random key will never complete decryption.
### file structure
| file | file extension name | type | magic number | location | amount | ascii |
| :-: | :-: | :-: | :-: | :-: | :-: | :-: |
| DOG FORMAT | .dog | u4/32bit | 0xDE0225CF | header | 1 | ... |