Skip to content

Latest commit

 

History

History

FolderEncoder

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Invoke-FolderEncode - Encode files from folder for(for example) uploading to cloud

Used as backups encoding solution. Encoding performed with 7z password protection https://www.powershellgallery.com/packages/FolderEncoder/2.0.0


ConsoleDemo

Commands

Invoke-FolderEncode - Add folder to bookmarks list
  [-DestFolder] <string>
  [-SrcFolder] <string> (Optional)

Usage

/>Invoke-FolderEncode -DestFolder "d:\System\" -SrcFolder "c:\windows\System42"
/> cd c:\Windows; Invoke-FolderEncode "d:\bkacup\" #use current folder as src

Decoding

There is no decoding script. Because currently used only for backups and(thank goodness) there was no necessity to decode it. To decrypt manually:

There was no reasons (thank goodness) decoding stored data so currently there no decoder script. It you need - please create github issue and I'll add scrpit for folder decoding.

Manually files can be decoded with the next algorithm: 1 Concat value from .masterKey and add ':' to beginign and by using resulting key extract .keys file from .keys.7z

2 Find apropriate row in .key for file that shoudl be decoded.

3 Concat first row from .masterKey with first row from .key file and ':' to beginign

4 Use key from previouse step as 7z password for decode file

Changelog

  • Added dependencies auto donwload.
  • Added platfrom specific tools for Linux/MacOs
  • Fixed key file check.
  • Moved module to individual foler.
  • Added module methods description.
  • Created description and usage examples
  • Create Windows folder encoding scripts:
ZipFile
  [FileName]<string>
  [Key]<string>
  [SrcFolder]<string>
  [DestFolder]<string>

GetFileHash
  [FilePath]<string>

EncodeFile
  [Salt]<string>
  [SrcFolder]<string>
  [DestFolder]<string>
  [FileName]<string>

Invoke-FolderEncode
  [SrcFolder]<string>
  [DestFolder]<string>

Motivation

Hi, I written this module(and ther from repo) for my own usage. But if you found it usefull you can Buy me a beer/cup of tee😊

Yandex Money

If you have any idea or suggestion - please add a github issue and I'll try to implement it😉