tsubasa:~$ read -n 8 a < /dev/urandomtsubasa:~$ echo -n "$a" | od -t x80000000 0b17eb3efa6b48120000010
tsubasa:~# dd if=/dev/urandom of=sec.iso bs=1M count=1010+0 records in10+0 records out10485760 bytes (10 MB) copied, 2.43836 s, 4.3 MB/stsubasa:~# losetup /dev/loop0 sec.isotsubasa:~# cryptsetup luksFormat /dev/loop0WARNING!========This will overwrite data on /dev/loop0 irrevocably.Are you sure? (Type uppercase yes): YESEnter LUKS passphrase: Verify passphrase: Command successful.tsubasa:~# cryptsetup luksOpen /dev/loop0 secEnter LUKS passphrase: key slot 0 unlocked.Command successful.tsubasa:~# mke2fs /dev/mapper/sec mke2fs 1.41.3 (12-Oct-2008)Filesystem label=OS type: LinuxBlock size=1024 (log=0)Fragment size=1024 (log=0)2432 inodes, 9724 blocks486 blocks (5.00%) reserved for the super userFirst data block=1Maximum filesystem blocks=99614722 block groups8192 blocks per group, 8192 fragments per group1216 inodes per groupSuperblock backups stored on blocks: 8193Writing inode tables: done Writing superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 35 mounts or180 days, whichever comes first. Use tune2fs -c or -i to override.tsubasa:~# mount /dev/mapper/sec /mnt/sectsubasa:~# echo bigsecret > /mnt/sec/bigsecrettsubasa:~# umount /mnt/sec/tsubasa:~# cryptsetup luksClose sectsubasa:~# losetup -d /dev/loop0tsubasa:~# ll sec.iso -rw-r--r-- 1 root root 10485760 2009-10-20 22:52 sec.isotsubasa:~# losetup /dev/loop0 sec.iso tsubasa:~# cryptsetup luksOpen /dev/loop0 secEnter LUKS passphrase: key slot 0 unlocked.Command successful.tsubasa:~# mount /dev/mapper/sec /mnt/sec/tsubasa:~# ls /mnt/sec/bigsecret lost+foundtsubasa:~# umount /dev/mapper/sec tsubasa:~# cryptsetup luksClose sectsubasa:~# losetup -d /dev/loop0
а звичайні ручка + блокнот з рандомними пасами не підійде для таких цілей?
І ви будете уводити рандомні паси вручну?
генерувати паролі можна з допомогою pwgen, а записувати вже в блокнот