GithubHelp home page GithubHelp logo

jeffchulg / luks-ops Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johntroony/luks-ops

0.0 1.0 0.0 254 KB

A bash script to automate the most basic usage of LUKS volumes in Linux.

License: GNU General Public License v2.0

Shell 100.00%

luks-ops's Introduction

LUKS-OPs

Join the chat at https://gitter.im/JohnTroony/LUKS-OPs

#####What is Luks-Ops? A bash script to automate the most basic usage of LUKS and Cryptsetup in Linux.

Like:

  • Creating a virtual disk volume with LUKS format.
  • Mounting an existing LUKS volume
  • Unmounting a Single LUKS volume or all LUKS volume in the system.
  • Creating a LUKS encrypted filesystem on removable disks (like USBs)

#####What Luks-Ops is not?

  • A replacement for LUKS or Cryptsetup.

#####Why I started writing this script?

  • To encrypt my files on Dropbox
  • To encrypt some files on my VPS
  • To have fun..

Basic Usage

There is an option for a menu:

luks-ops.sh menu

Other options include:

1) luks-ops.sh new DISKNAME 512
2) luks-ops.sh mount /path/to/device MOuntPoint
3) luks-ops.sh unmount-all 
4) luks-ops.sh clean
5) luks-ops.sh usage
  1. Will create a virtual-disk named DISKNAME with size 512 MB
  2. Will mount device at MountPoint
  3. Will unmount all luks volume mounted
  4. Will clean all unfinished setups incase of errors (But I recommend using 4)
  5. Will print help message

Default Options:

  • Virtual-disk size = 512 MB and it's created on /usr/ directory
  • Default filesystem used = ext4
  • Cipher options:
    • Creating LUKS1: aes-xts-plain64, Key: 256 bits, LUKS header hashing: sha1, RNG: /dev/urandom
    • plain: aes-cbc-essiv:sha256, Key: 256 bits, Password hashing: ripemd160 (about-time ๐Ÿ˜„)
  • Mounting point = /media/luks_* where * is random-string.
  • Others.. NB. You can change /dev/urandom to /dev/zero (speed?)

Dependencies (Install applications:)

  1. dmsetup -- low level logical volume management
  2. cryptsetup -- manage plain dm-crypt and LUKS encrypted volumes

NB: Run as root.

But make sure you read the man pages and other online Doc about LUKS

  • man cryptsetup (or cryptsetup --help)
  • man dmsetup

TODO

  1. Support for multiple user keys
  2. Remote unlocking LUKS encrypted LVM
  3. ZSH completion
  4. [ Include other user requests here ]

Read..

The LUKS website at http://code.google.com/p/cryptsetup/

The cryptsetup FAQ, contained in the distribution package and online at http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions

The cryptsetup mailing list and list archive, see FAQ entry 1.6.

The LUKS on-disk format specification available at http://code.google.com/p/cryptsetup/wiki/Specification

luks-ops's People

Watchers

 avatar

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.