summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-10-28 15:56:02 +0100
committerPatrick Simianer <p@simianer.de>2015-10-28 15:56:02 +0100
commit7b9bdb0cc235237ba6f038dc8f58cd4b50fe754f (patch)
tree764ef34546446df83f0373294b548a896bf90f65
parent826dd884f4e5761fba601aa3f28d7883b8116abf (diff)
make_crypt script
-rwxr-xr-xmake_crypt9
1 files changed, 9 insertions, 0 deletions
diff --git a/make_crypt b/make_crypt
new file mode 100755
index 0000000..6d12614
--- /dev/null
+++ b/make_crypt
@@ -0,0 +1,9 @@
+#!/bin/zsh
+
+if [ "$#" -ne 1 ]; then
+ echo "missing arg."
+ exit
+fi
+
+cryptsetup -c aes-xts-plain64 -s 256 -h sha256 -i 1000 --use-random -y luksFormat $1
+