Linux - how to find the LUKS1 or LUKS2 encryption version? How to use LUKS 2?

Linux - how to find the LUKS1 or LUKS2 encryption version? How to use LUKS 2?

Hello, I use the PC encryption of the whole Ubuntu partition using LUKS and I also have LUKS on data partition. How do I find out what version of LUKS I have there? LUKS 1 or LUKS 2?

When there is LUKS version 1, I understand that I will not redo it in the system partition, but could it be redesigned on that data partition to LUKS version 2?

Thanks

REPLY


Hello,

how to verify version LUKS1 and LUKS2? You can use cryptsetup luksDump to do this:

Here is the LUKS version 2
cryptsetup luksDump /dev/xvda1

LUKS header information
Version: 2


Here is the LUKS version 1
cryptsetup luksDump /dev/md0

LUKS header information for /dev/md0

Version: 1
Cipher name: aes
Cipher mode: xts-plain64
Hash spec: sha1
Payload offset: 4096


-----------------------------------------------------------------------------
Enforcing LUKS 2 should never be necessary - LUKS 2 is automatically selected when creating an encrypted partition (unless you have a very old cryptsetup package). However, if you want to force older LUKS 1 for some reason, you would do it this way:
cryptsetup -y -v luksFormat --type=luks1 -c aes-xts-plain64 -s 512 /dev/sdf3

Související obsah

linux

bash

terminal

luks

crypt

Komentáře

Vaše reakce na Linux - jak zjistit verzi šifrování LUKS1 nebo LUKS2? Jak použít LUKS 2?

Reference

Podívejte se na naše reference

Prohlédnout

Aplikace

Podívejte se na naše aplikace

Prohlédnout

Co umíme?

Podívejte se co umíme

Prohlédnout

Co umíme?

Vytváříme sofistikované aplikace pro náročné

Od webových aplikací přes android až po převodové můstky či složité informační systémy.

Podívejte se k nám

Máte ještě čas? Podívejte se na další rubriky

Tento web používá soubory cookie. Dalším procházením tohoto webu vyjadřujete souhlas s jejich používáním.. Více informací zde.