Git Product home page Git Product logo

tomber's Introduction

Tomber

Description

Tomber is a python wrapper for Tomb. It relies on Python's subprocess module for Tomb command execution. This project was inspired by pytomb which was included in Tomb ./extras in the past but is no longer maintained.

The included test.jpg image file is used to test the tbury() and texhume() functions.

To speedup forge, an entropy generator such as haveged can be installed.

Compatibity

Current version requieres at least Tomb v2.2 to run. If for any reason you need to use older Tomb version with tomber, please install tomber v1.0.2

Installation

First, Tomb must be installed. Please refer to the Tomb documentation to get Tomb installed on your system.

Second, tomber must be installed. Tomber can be installed from PyPi using pip. Enter the following command into terminal:

pip install tomber

Alternatively you can clone this public repository by entering the following command into terminal.

git clone https://github.com/reiven/tomber

Example usage

from tomber import *

# dig a tomb of 20mb
tdig('test.tomb',20)

# forge a key
tforge('test.key', 'this is the passphrase for the key')

# lock the tomb
tlock('test.tomb', 'test.key', 'this is the passphrase for the key')

# open the tomb
topen('test.tomb', 'test.key', 'this is the passphrase for the key', '/tmp/tomb')

# close the tomb
tclose('test')

Running tests

Keep in mind that the included test.py file execute the Tomb.slam() command which will likely close any tombs, encrypted volumes, you may have open.

License

This package is distributed under BSD License. See LICENSE

tomber's People

Contributors

arusekk avatar joelmon avatar reiven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tomber's Issues

Avoid using Popen with shell=True

Hi,

You should use Popen by giving it a list of arguments instead of a single string:

# good
Popen(['tomb', 'slam'])

# bad, see the warning at https://docs.python.org/2/library/subprocess.html#index-2
Popen('tomb slam', shell=True)

This way you will avoid security issues and you wont need functions like sanitize_passphrase and the use of ' '.join()

Best regards.

cool logo

Here an awesome logo for tomber

tomb + python

Made by Logan VanCuren on his attempts to write ptomb.

As of now I think tomber is the best py hook since its a wrapper, I would not recommend rewriting all tomb in python for maintainability issues (we better all depend from the same shell script).

ciao

Typos

Hello,

There are a few typos and grammatical errors in the README.mkdn file. I have forked the project and will fix those issues for you.

Tomb option --unsecure-dev-mode invalid: has changed to --unsafe (?)

It seems like the tomb option --unsecure-dev-mode has been changed to --unsafe in recent versions. (Or they're are different options altogether?)

In any case, --unsecure-dev-mode is not a valid option for the forge command in Tomb v2.2.

This is blocking some basic Tomber functionality such as the tforge function.

Not sure if this is exactly what is going on here, but I suspect replacing all instances of --unsecure-dev-mode with --unsafe in Tomber would resolve this. But would definitely break backwards compatibility. Again, not sure what versions of Tomb are in play here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.