Cryptsetup Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:
=Encrypting a Block Device with cryptsetup/LUKS=
=Encrypting a Block Device with cryptsetup/LUKS=


Format the block device with [[Dm-crypt#LUKS|LUKS]] and assign it a passphrase (it is also possible to use a key file).
Format the block device with [[Dm-crypt#LUKS|LUKS]] and assign it a [[Dm-crypt#Passphrase|passphrase]] (it is also possible to use a [[Dm-crypt#Key_File|key file]]).


  cryptsetup luksFormat -y -v /dev/sdb
  cryptsetup luksFormat -y -v /dev/sdb

Revision as of 08:25, 24 December 2018

Internal

Overview

cryptsetup is the userspace utility used to manage the dm-crypt encryption functionality.

Installation

yum install cryptsetup

Encrypting a Block Device with cryptsetup/LUKS

Format the block device with LUKS and assign it a passphrase (it is also possible to use a key file).

cryptsetup luksFormat -y -v /dev/sdb