更新時間: 25/12/11
介紹:
cryptsetup 是一個符合 LUKS(Linux Unified Key Setup) 加密方式的軟件
LUKS 是指它有一個 standardizes 的 partition header 或 file header
此 header 是用來儲存設定值及加密的 key!!
因此無需個別的設定檔了 !!!
好處是在A機上加密了, 不用仕何設置的情況下就可在B機上解密.
安裝:
apt-get install cryptsetup
root@debian:~# cryptsetup --version cryptsetup 1.1.3
測試
重點在於 Format, Open, Close 這三個操作
- luksFormat
- luksOpen
- luksClose
# dd if=/dev/zero of=/root/cryfile bs=1M count=10
# losetup /dev/loop0 /root/cryfile