27.06.2013 Views

Hack Security Pro.pdf - Index of

Hack Security Pro.pdf - Index of

Hack Security Pro.pdf - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Cryptoapis are integrated in standard in the kernel from the 2.4.22 version, but we will use a 2.6.5<br />

version. The modules to activate are:<br />

Block Devices Loopback device support<br />

SECTION MODULES<br />

Block Devices Loopback device support<br />

Cryptographic<br />

Options<br />

Cryptoloop device support<br />

SHA 256 Digest algorithm<br />

SHA 384 Digest Algorithm<br />

Blowfish cipher Algorithm<br />

Tw<strong>of</strong>ish cipher Algorithm<br />

Serpent cipher Algorithm<br />

AES cipher Algorithm<br />

CAST5 cipher Algorithm<br />

CAST6 cipher Algorithm<br />

ARC4 cipher Algorithm<br />

You have the choice between several numbering algorithms. AES was the winner <strong>of</strong> the best algorithm<br />

competition organized by NSA, the serpent coming in second. You will also need the losetup package.<br />

Recompile your kernel, then, in root, we are going to set up a hda5 partition on the loopback /<br />

dev/loop0 device. Anything transiting on this virtual device will be encrypted/decrypted with the<br />

password asked for:<br />

Laptop:/home/xdream# losetup -e serpent -k 256 /dev/loop0 /dev/hda5<br />

Password: xxxx<br />

The <strong>Hack</strong>ademy DMP -194/209- SYSDREAM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!