Narf03
Posts: 243
Joined: Mon Jun 11, 2012 3:44 pm
Location: Malaysia

Re: Truecrypt Seems to work pretty well

Wed Dec 12, 2012 2:56 pm

mattborja wrote:You guys do know you can also just download the guy's compiled binary here: http://reinhard-seiler.blogspot.co.at/2 ... e-for.html

After hours of trying to get it compiled, it appears there was some inconsistency using the latest version of PKCS11 preventing me from successfully doing make WXSTATIC=1 in the truecrypt sources directory. I returned to the same article we've all been using (http://reinhard-seiler.blogspot.com/201 ... ry-pi.html) and found the discrete "you can download them here" link which is a link to download the binary (already compiled) version.

To mount my encrypted drive, I now run the following (bypasses the device-mapper error):

Code: Select all

sudo ./truecrypt -m=nokernelcrypto /dev/sda1 /media/somemountpoint/
ya i was wondering why must make it so difficult and time consuming, i guess thats something im looking for, i am a new linux user, its a pain reading through all the compiled error message and start google 1 by 1. Thank you very much for sharing that, I will try that tomorrow.

chrisprt
Posts: 44
Joined: Fri Jul 13, 2012 6:07 pm

Re: Truecrypt Seems to work pretty well

Thu Dec 13, 2012 1:09 am

mattborja wrote:You guys do know you can also just download the guy's compiled binary here: http://reinhard-seiler.blogspot.co.at/2 ... e-for.html
true, unless you want to use it on an armel install. If anybody has that problem I can post the binary I compiled.

Narf03
Posts: 243
Joined: Mon Jun 11, 2012 3:44 pm
Location: Malaysia

Re: Truecrypt Seems to work pretty well

Wed Dec 19, 2012 8:53 am

Hi all, i have created a truecrypt image with the following command

Code: Select all

 sudo ./truecrypt -t --create /pi/media.img --password=123456 --volume-type=normal --encryption=AES --hash=Whirlpool --filesystem=vfat -k "" --random-source=/pi/mKey.txt --size=1000000000
I failed to mount it with the following command

Code: Select all

sudo ./truecrypt -m=nokernelcrypto --password=123456 --keyfiles="" --random-source=/pi/mKey.txt --protect-hidden=no --filesystem=vfat --volume-type=normal --encryption=AES /pi/media.img /pi/media
The error im getting is

Code: Select all

Error: mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
And if i do a "dmesg | tail", ill be getting

Code: Select all

[ 4950.410345] FAT-fs (loop0): invalid media value (0x9c)
[ 4950.410370] FAT-fs (loop0): Can't find a valid FAT filesystem
[ 4990.298085] FAT-fs (loop0): invalid media value (0x9c)
[ 4990.298109] FAT-fs (loop0): Can't find a valid FAT filesystem
[ 5044.182776] FAT-fs (loop0): invalid media value (0x9c)
[ 5044.182911] FAT-fs (loop0): Can't find a valid FAT filesystem
[ 5091.521461] FAT-fs (loop0): invalid media value (0x9c)
[ 5091.521485] FAT-fs (loop0): Can't find a valid FAT filesystem
[ 5213.601038] FAT-fs (loop0): invalid media value (0x9c)
[ 5213.601063] FAT-fs (loop0): Can't find a valid FAT filesystem
please help, thanks.

chrisprt
Posts: 44
Joined: Fri Jul 13, 2012 6:07 pm

Re: Truecrypt Seems to work pretty well

Thu Dec 20, 2012 4:38 pm

Narf03 wrote:Hi all, i have created a truecrypt image with the following command

Code: Select all

 sudo ./truecrypt -t --create /pi/media.img --password=123456 --volume-type=normal --encryption=AES --hash=Whirlpool --filesystem=vfat -k "" --random-source=/pi/mKey.txt --size=1000000000
I failed to mount it with the following command

Code: Select all

sudo ./truecrypt -m=nokernelcrypto --password=123456 --keyfiles="" --random-source=/pi/mKey.txt --protect-hidden=no --filesystem=vfat --volume-type=normal --encryption=AES /pi/media.img /pi/media
The error im getting is

Code: Select all

Error: mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
And if i do a "dmesg | tail", ill be getting

Code: Select all

[ 4950.410345] FAT-fs (loop0): invalid media value (0x9c)
[ 4950.410370] FAT-fs (loop0): Can't find a valid FAT filesystem
[ 4990.298085] FAT-fs (loop0): invalid media value (0x9c)
[ 4990.298109] FAT-fs (loop0): Can't find a valid FAT filesystem
[ 5044.182776] FAT-fs (loop0): invalid media value (0x9c)
[ 5044.182911] FAT-fs (loop0): Can't find a valid FAT filesystem
[ 5091.521461] FAT-fs (loop0): invalid media value (0x9c)
[ 5091.521485] FAT-fs (loop0): Can't find a valid FAT filesystem
[ 5213.601038] FAT-fs (loop0): invalid media value (0x9c)
[ 5213.601063] FAT-fs (loop0): Can't find a valid FAT filesystem
please help, thanks.
Don't choose an FS type when creating the volume. Then mount it and use mkfs to create the FS type you desire.

Narf03
Posts: 243
Joined: Mon Jun 11, 2012 3:44 pm
Location: Malaysia

Re: Truecrypt Seems to work pretty well

Mon Dec 24, 2012 9:02 pm

It worked, thank you.

Narf03
Posts: 243
Joined: Mon Jun 11, 2012 3:44 pm
Location: Malaysia

Re: Truecrypt Seems to work pretty well

Wed Dec 26, 2012 6:41 am

Another question, which FS or encryption algorithm is best for speed, ignoring level of security? I noticed TrueCrypt is very CPU intensive(especially pi has a very weak CPU), its load can go as high as 50%(while i am running overclock of 900mhz), or are there any other ways to reduce the load ? If i play a video(HD or fullHD) from the TrueCrypt partition, it will be jerky.

Thanks.

marked
Posts: 218
Joined: Fri Jul 29, 2011 4:25 pm

Re: Truecrypt Seems to work pretty well

Sat Dec 29, 2012 5:13 pm

There is a benchmark tool in truecrypt GUI under tools | Benchmark with different buffer values.

5MB gives

Code: Select all

Algorithm            Encryption  Decryption  Mean
Twofish               8.0MB/s      6.5MB/s   7.3MB/s
Serpent               5.8MB/s      6.0MB/s   5.9MB/s
AES                   3.7MB/s      3.6MB/s   3.7MB/s
Twofish-Serpent       3.3MB/s      3.1MB/s   3.2MB/s
AES-Twofish           2.6MB/s      2.4MB/s   2.5MB/s
Serpent-AES           2.3MB/s      2.3MB/s   2.3MB/s
AES-Twofish-Serpent   1.8MB/s      1.7MB/s   1.8MB/s
Serpent-Twofish-AES   1.8MB/s      1.6MB/s   1.7MB/s
This is using the build listed above, so I don't know what level of tuning the build has.

mark

Narf03
Posts: 243
Joined: Mon Jun 11, 2012 3:44 pm
Location: Malaysia

Re: Truecrypt Seems to work pretty well

Thu Jan 10, 2013 1:57 pm

Hi all, im having problem creating truecrypt volume if im not using AES as encryption.

Code: Select all

sudo ./truecrypt -t --create /pi/media.img --password=123456 --volume-type=normal --hash=Whirlpool -k "" --random-source=/pi/mKey.txt --size=1000000
it will prompt me FileSystem and Encryption Algorithm, FileSystem I always use Linux Ext4, and I am playing with different type of Encryption Algorithm, it will successfully create volume if i select AES, and I will get the same error if i select Serpent or Twofish, never tried on other(which is combination of 2 or more algorithm).

The error is :

Code: Select all

Error: device-mapper: reload ioctl on truecrypt1 failed: No such file or directory
Any idea what caused it ? thanks.

andPS2
Posts: 17
Joined: Wed Apr 03, 2013 1:37 pm

Re: Truecrypt Seems to work pretty well

Sat Apr 06, 2013 6:44 pm

i have a problem trying to mount an encrypted drive with ntfs
when using the gui version of truecrypt i can mount it fine
but i need to get it to work on the commandline as well so i can script it

i just cant get it to work there
truecrypt -t -k "" -p"password" --protect-hidden=no /dev/sda /media/klar/

/dev/sda is the drive
when selecting that in the GUI and mounting it mounts fine
i tried nokernelcrypto and filesystem_type=ntfs as well
can anyone help me? thanks

p.s. this is how it looks after beeing mounted in GUI

Code: Select all

truecrypt on /tmp/.truecrypt_aux_mnt1 type fuse.truecrypt (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/mapper/truecrypt1 on /media/truecrypt1 type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

marked
Posts: 218
Joined: Fri Jul 29, 2011 4:25 pm

Re: Truecrypt Seems to work pretty well

Sat Apr 06, 2013 6:56 pm

I've found under the windows version that I needed -a (or --automount) for any scripted mounting to work. Everything else usually put up the truecrypt gui with all the parameters defined, needing the password/keyfiles and OK to be entered.

mark

andPS2
Posts: 17
Joined: Wed Apr 03, 2013 1:37 pm

Re: Truecrypt Seems to work pretty well

Sat Apr 06, 2013 8:33 pm

ok solved it myself
the password has to be like 'password' if there are
special characters in it
its working now
the tips with the favorites is also very useful ;)

RealBirkoff
Posts: 1
Joined: Wed Oct 30, 2013 12:40 am

Re: Truecrypt Seems to work pretty well

Wed Oct 30, 2013 12:43 am

If anyone still encounters the error "The drive uses a sector size other than 512 bytes" with Truecrypt on the raspberry pi and a recent hard drive with 4Kb sectors, I tried to explain how I solved it in this blog post: http://www.robinpel.be/raspberry-pi-nas ... hard-drive.

j0z0r
Posts: 52
Joined: Fri Oct 28, 2011 5:46 pm

Re: Truecrypt Seems to work pretty well

Thu Oct 31, 2013 5:39 pm

This is great news. I hadn't even thought about using Truecrypt, but the Pi is an excellent candidate for it. Thanks for the reminder and the tips!!

lamero
Posts: 6
Joined: Tue Dec 03, 2013 9:38 pm

Re: Truecrypt Seems to work pretty well

Fri Jan 03, 2014 8:40 am

How to create a hidden volume (worked for me):
Install required software:

Code: Select all

sudo apt-get install dosfstools
Create an outer volume with no filesystem:

Code: Select all

truecrypt -t --create /tmp/media.img --password=123456 --size=10485760 --volume-type=normal --encryption=AES --hash=SHA-512 -k "" --random-source=/dev/urandom
Create a hidden volume within the outer volume:

Code: Select all

truecrypt -t --create /tmp/media.img --password=1234567  --size=9000000 --volume-type=hidden --encryption=AES --hash=SHA-512 -k "" --random-source=/dev/urandom
Mount the outer volume using hidden volume protection (password 123456):

Code: Select all

truecrypt -t -k "" --protect-hidden=yes /tmp/media.img /tmp/key/ -v -m=nokernelcrypto --filesystem=none
Create a filesystem on the virtual device of the outer volume:

Code: Select all

sudo mkfs.vfat /dev/loop0
truecrypt -d
Mount the new filesystem and fill it with data (password 1234567):

Code: Select all

truecrypt -t -k "" --protect-hidden=yes /tmp/media.img /tmp/key/ -v -m=nokernelcrypto --filesystem=none
sudo mkfs.vfat /dev/loop0
truecrypt -d

technion
Posts: 238
Joined: Sun Dec 02, 2012 9:49 am

Re: Truecrypt Seems to work pretty well

Sat Jan 04, 2014 2:57 am

If I assume you are going to store important data there, creating the image in /tmp is a terrible idea. Your home directory would probably be a better place for it.

It's good to see people investing in alternatives to AES.

marked
Posts: 218
Joined: Fri Jul 29, 2011 4:25 pm

Re: Truecrypt Seems to work pretty well

Sat Jan 04, 2014 9:25 am

technion wrote:It's good to see people investing in alternatives to AES.
um? both those volumes were encrypted with AES. To what are you referring?

ControlAppleReset
Posts: 1
Joined: Fri Mar 14, 2014 1:30 pm

Re: Truecrypt Seems to work pretty well

Fri Mar 14, 2014 1:32 pm

I have a symbol mismatch.

My wxlibrary has this symbol in /usr/local/lib/libwx_gtk2_core-2.8.so:

wxApp::Initialize(int&, char**)

but the linker wants this symbol:

TextUserInterface.o:(.rodata._ZTVN9TrueCrypt17TextUserInterfaceE+0x44): undefined reference to `wxApp::Initialize(int&, wchar_t**)'

At which step should I resolve the char v wchar_t discrepancy?

pkp3636
Posts: 1
Joined: Tue May 13, 2014 1:36 am

Unable to open truecrypt encrypted external hard drive

Tue May 13, 2014 1:40 am

I encrypted my 2 TB hard drive in windows using truecrypt.
I can open it in windows.
Now I installed truecrypt in my rpi but I dont know how to access my hard drive.
Truecrypt in rpi is CLI and it asks for volume path at the starting.

I COULD NOT FIND THE PATH OF MY 2 TB HARD DRIVE becoz it is not visible like other usb drives.

Please someone give me the the full command to type in to open my hard drive....its name is SUPERMAN and encrypted with the password plus 3 keyfiles.
THANKS IN ADVANCE :D

MacFrog
Posts: 1
Joined: Thu Mar 24, 2016 2:22 pm

Re: Truecrypt Seems to work pretty well

Thu Mar 24, 2016 2:27 pm

I've written a small script to compile truecrypt directly on the PI. Needs some time ...

Code: Select all

#/bin/bash

# Please change the following values
#-------------------------------------------------

DO_CLEANUP=0   # 1 = delete the temporary directory
BUILD_BASEDIR=~/tmp

# No additional changes necessary after this line
#-------------------------------------------------
BUILD_DIR=$BUILD_BASEDIR/TC_build
mkdir -p $BUILD_DIR
cd $BUILD_DIR

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libfuse-dev screen

wget "https://github.com/AuditProject/truecrypt-verified-mirror/raw/master/Source/TrueCrypt%207.1a%20Source.tar.gz"
tar xfz "TrueCrypt 7.1a Source.tar.gz"

cd truecrypt-7.1a-source
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/*.h

wget http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.12.tar.gz
tar xfz wxWidgets-2.8.12.tar.gz

make NOGUI=1 WX_ROOT=$BUILD_DIR/truecrypt-7.1a-source/wxWidgets-2.8.12 wxbuild
make NOGUI=1 WXSTATIC=1

sudo cp Main/truecrypt /usr/local/bin/
sudo chmod +x /usr/local/bin/truecrypt

#rm -rf truecrypt-7.1a-source/
#rm TrueCrypt\ 7.1a\ Source.tar.gz
[ $DO_CLEANUP -eq 1 ] && cd && rm -rf $BUILD_DIR

truecrypt --version
truecrypt --help

swti6690
Posts: 2
Joined: Mon Nov 16, 2015 12:29 pm

Re: Truecrypt Seems to work pretty well

Mon Apr 04, 2016 11:26 am

The Cryptographic Sequencer was a tool that permitted Batman to bypass safety console, track indications, & snoop in on radio broadcasts.

http://www.whatisnetworking.net/how-to- ... -services/

Return to “Other projects”