How to create and use LUKS encrypted partition in Linux

It is easy to create a LUKS container and a partition within it, using the GUI on Linux. The application that enables this easily is the gnome-disk-utility. However, if you want to use the command line to set up a LUKS encrypted device, read on. Exercise appropriate caution before doing any of the below with … Continue reading How to create and use LUKS encrypted partition in Linux

How to close the program in Java completely in Swing

A Java Swing application can be closed using the following code segment to retrieve the parent of the container, check if it is a JFrame and then dispose the JFrame: public class btnCancelListener implements ActionListener { public void actionPerformed(ActionEvent ev) { Container bframe = btnCancel.getParent(); bframe = bframe.getParent(); while (! (bframe instanceof JFrame)) { System.out.println("Done"); … Continue reading How to close the program in Java completely in Swing

Encrypting a container file using dm-crypt / cryptsetup instead of TrueCrypt

Encrypting a container file using dm-crypt / cryptsetup instead of TrueCrypt There are many users who use TrueCrypt (http://www.truecrypt.org) to encrypt our data backups for added security. To us, TrueCrypt was one of the best tools available. However, with the latest update on the TrueCrypt website, the developers have stated that those using TrueCrypt should … Continue reading Encrypting a container file using dm-crypt / cryptsetup instead of TrueCrypt