Tag Archives: crypto

encrypted file-partition

How to create:

dd if=/dev/urandom of=/home/user/.hide bs=1GB count=10
dd if=/dev/urandom of=/home/user/.keyfile bs=1KB count=2
losetup /dev/loop1 /home/user/.hide
badblocks -s -w -t random -v /dev/loop1
cryptsetup luksFormat /dev/loop1 -d /home/user/.keyfile
cryptsetup luksOpen /dev/loop1 secret -d /home/user/.keyfile
mkfs.ext4 -j /dev/mapper/secret
e2fsck -f /dev/mapper/secret

How to mount:

losetup /dev/loop1 /home/user/.hide
cryptsetup luksOpen /dev/loop1 secret -d /home/user/.keyfile
mount /dev/mapper/secret /mnt/hide/

How to umount:

umount /mnt/hide
cryptsetup luksClose secret
losetup -d /dev/loop1

cisco: ssh

Test1 (config)#username sshuser password 0 sshuserpassword

Test1 (config)#crypto key generate rsa

Test1 (config)#ip ssh version 2

Test1 (config)#line vty 0 4
Test1 (config-line)#login local
Test1 (config-line)#transport input ssh

Test1 (config-line)#exit

psi encryption

Activationg encription in PSI (Best jabber client)
In order to PSI under (k) ubuntu has been active selection button pgp (gpg) key must install the appropriate plug-in:
aptitude install libqca2-plugin-gnupg
or emerge app-crypt/qca-gnupg in gentoo linux

First, you must identify your account with your key for this:
Open your account settings
Click the item «modify».
Select the tab «details».
Click on the button «select key».
Choose your key and click «OK».

Once you perform this operation, the program at startup will ask you to enter a password to your private key. This is normal, since the operations of your correspondents decrypt messages and sign their communications needs access to your private key.

Next you need to associate a user account (your correspondent), with its key.
To do this:
In the Contacts program (roster) choose the correspondent, whose key you imported is signed and assigned him to the level of confidence
Click on the right mouse button and select «Set Key OpenPGP».
In the window that opens, select the key of the correspondent.
Presses «OK».

To activate encryption when communicating with your buddies, click on the lock symbol, which will be active in the bar of the dialog. In private communication you will receive a colorful message from the program in the dialog box that encryption is enabled.