Skip to content

A script for splitting files and encrypt them separately, and then combine them into one encrypted file

License

Notifications You must be signed in to change notification settings

BiteDasher/artzip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

artzip

A script for splitting files and encrypt them separately, and then combine them into one encrypted file

Basic syntax:

artzip --create FILE KEY SED_DICT
  artzip --create FILE -f KEYFILE SED_DICT
artzip --extract FILE KEY SED\_DICT CHUNK_KEYFILE
  artzip --extract FILE -f KEYFILE SED_DICT CHUNK_KEYFILE

For creating SED_DICT:

bash artzip_gen_sed_random > SED_DICT

Scheme of work:

File clangd is 5 MB size

We split this file into chunks one megabyte at a time

Set the encryption key, for example 123

We take the sed's dictionary

Replace
1 on X
2 on Y
3 on Z

Using XYZ as the current key

We encrypt each piece with "KEY + RANDOM"

We randomly encrypt for each piece using the old 123 key, convert it to base64 and save it to the random_keys file

Combine all chunks into one file wih cat >>
(BTW, the name of file is important for decrypting)

Needed binaries:

head
tail
grep
sed
openssl
bash
tar
split
tr
du
wc

About

A script for splitting files and encrypt them separately, and then combine them into one encrypted file

Topics

Resources

License

Stars

Watchers

Forks