Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

obfus

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obfus

  • 0.1.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

obfus

File compression and encryption tool

Under development!

With the top notch of both compression and encryption technology, obfus makes it easy to pack and back up sensitive data in a few keystrokes.

Requirements

  • Brotli
  • GnuPG

Install

brew install obfus

Usage

Archive
obfus readme.md src/**/*.rb -o backup.obfus
Unarchive
obfus -d backup.obfus

Features

Configuration file

Before each operation, obfus searches for a configuration file, usually located in ~/.config/obfus/ or in your home directory.

The config file can be both in json or yaml format.

Inside the configuration file you can define a list of presets that can be used when obfus archives data.

Example configuration file:

# ~/.config/obfus/config.yml

default:
  recipients:
    - myself@mail.com
  level: 9
  keep: false

work:
  recipients:
    - coworker@company.com
    - boss@company.com
  level: 3
  keep: true
  verbosity: verbose

backup:
  recipients:
    - myself@mail.com
  level: 11
  verbosity: verbose

By default obfus uses the default preset if present, otherwise it will operate with the program's native defaults.

To specify a preset use the -p option:

obfus -p work ~/Documents/work/

The configuration file's sole purpose is to make it easier to pick the settings and apply them on the fly every time you need. To ovveride the current preset settings or the default settings just pass more options as arguments.

For example, to add a recipient to the archive without altering the config file use the -r option:

obfus -p work ~/Documents/work/ -r mommy@mail.com,daddy@mail.com
Configuration file location
  • ~/.config/obfus/config{,.json,.yaml,.yml}
  • ~/.obfus{rc,config}

Options

NameShorthandFunctionalityDefault
--compress-zCompress operation modeyes
--decompress-dDecompress operation modeno
--output FILE-oSpecify the output file name
--force-fForce overwrite the output file if it already existsfalse
--preset NAME-pUse a preset configuration from the config filedefault
--level [0..9]-lSpecify the compression level (as in brotli)9
--keep-kKeep the original filestrue
--recipients X,Y,Z-rAdd recipients
--verbose-vPrints more stuff
--quiet-qPrints nothing but errors, if any
--versionPrint the version and exit
--help-hPrint the help message and exit

Options can be concatenated, like in many unix programs:

obfus files/* -zvr some@mail.com -fko output.obfus

FAQs

Package last updated on 18 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc