The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 21:02:57

Duke Nukem
Member
Registered: 2018-11-07
Posts: 54  

tcplay - so different from truecrypt and veracrypt?

I am trying to operate tcplay (encryption application) from the command line and I'm baffled. I have done this in the past, at least with veracrypt, and it was a matter of simply specifying the device (a whole partition in my case) and a mount point. It was something like :

veracrypt --create /dev/sdb2

... to create an encrypted partition (it would then ask for a password),

and something like :

veracrypt --mount /dev/sdb2 /mnt/secrets

... to view the partition contents decrypted (it would then ask for a password)

and something like

veracrypt --dismount /mnt/secrets

... to unmount the partition

But tcplay seems completely different. Although creation seems to follow the same principle, the man page only talks of "mapping", not "mounting". The manual gives as example (ignoring hidden volumes and and non-default encryption options) :

tcplay --map=truecrypt1 --device=/dev/vn0

This presumably identifies the device (a partition) as an entity called "truecrypt1", but does nothing about mounting it on the file system.

The man page example goes on with :

losetup /dev/loop1 secvol --map = secv --device = /dev/loop1 
mount /dev/mapper/secv /mnt

How has this complexity arisen? What have loop devices got to do with it? It now takes three lines to mount an encrypted volume? Is this something of systemd's doing? I have a veracrypt encrypted partition from an earlier Chimera installation and I'm a bit reluctant to try mounting it with this new methodology in case it foobars it all.

Offline

#2 Yesterday 21:10:32

rolfie
Member
Registered: 2017-11-25
Posts: 1,381  

Re: tcplay - so different from truecrypt and veracrypt?

I never used that kind of tools.

But one thing I know for sure: Truecrypt is no more maintained for now about 12 years or so. So I am not astonished that Veracrypt is a bit more comfortable.

Offline

#3 Yesterday 23:50:57

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,550  

Re: tcplay - so different from truecrypt and veracrypt?

There is cryptsetup which according to its man page handles VeraCrypt encryption format.
It still will need two separate steps, like

cryptsetup open --type tcrypt /dev/sdb2 secrets
mount /dev/mapper/secrets /mnt/secrets

The first step creates the virtual partition (/dev/mapper/secrets) being the decryption of the real partition (/dev/sdb2), and the second step mounts that partition's filesystem on /mnt/secrets.

As per man page, if the VeraCrypt encryption has "personalized iteration count", you may need additional options to the open command.

Afaict tcplay does the same thing as cryptsetup, i.e. it creates that virtual partition for decrypted content access, and it doesn't mix in the filesystem mounting (which is an interpretation of the decrypted content).

Offline

Board footer