Questions tagged [encryption]

encoding information in a way so that it can only be decoded if a secret is known; used to prevent exposure of data to other parties

873 questions
17
votes
2 answers

List available methods of encryption for LUKS

I was searching for a valid and still up-to-date way of encrypting hard disks. After some research I encountered LUKS and decided to give it a shot. So I looked up some examples of how to properly encrypt an HDD with it, like this: cryptsetup…
Akito
  • 558
8
votes
2 answers

Password encryption and decryption

I have stored the password as plain text in a txt file. Now I want to write the script which will read the plain text from the txt file and after that it should encrypt that and decrypt that.
Sandy
  • 81
7
votes
2 answers

Does secure delete files on an encrypted partition make sense?

I have an encrypted partition that I mount with cryptsetup at every boot. Does secure delete (e.g. with srm) a file into this partition make sense? I know that from an external point of view an encrypted partition is just casual bits. But if one day…
sivlab
  • 145
3
votes
0 answers

What is the kernel parameter to decrypt partition other than root?

In order for the bootloader to decrypt the root filesystem you just need the parameters cryptdevice=/dev/sda1:crypt root=/dev/mapper/crypt. What would be the parameter for other filessystems than root so I am prompted for multiple device to decrypt…
ChiseledAbs
  • 2,243
3
votes
1 answer

Is cryptsetup benchmark for single or multiple queues

Let say that cryptsetup benchmarks gives 2 GiB/s performance. Is it per queue so on 4 core processor I could read from disk at 8 GiB/s (assuming I wasn't limited by SATA etc. and it would scale perfectly) or does it already take it into account?
1
vote
1 answer

Securely mount an encrypted container

How can I securely mount an encrypted container? I want to encrypt a bunch of small files (let's say my diary). When locked, this should appear as a single file with unreadable contents. When I unlock it, it should be mounted as a file system…
Bagalaw
  • 945
1
vote
1 answer

Luks encryption of root partition and UEFI

I have UEFI enabled in my BIOS and a Ubuntu installed in the single hard disk available in the machine. There are two Linux partitions in this hard disk: /boot/efi and /. I have recently booted via UEFI in a live USB with the same version of Ubuntu…
1
vote
0 answers

Encrypt folder on closing SSH, decrypt on starting SSH

I'm working on a remote machine, which I SSH to. My goal is to have a folder which is encrypted when I close my SSH session, and decrypted when I open a new one. I've tried using ecryptfs's ecryptfs-setup-private putting the folders I want encrypted…
1
vote
1 answer

PKCS7 encryption

I require your support. I wanted to do pkcs encryption using my certificate and third party certificate. I have below components and wanted to have pkcs7 encrypted output file. Source file : PayFile_143_2300000004_20170508_161457.txt My certificate…
1
vote
1 answer

How to migrate a folder encrypted with eCryptfs to EncFS

I have a large folder encrypted with eCryptfs and synced with Dropbox. Is somehow possibile to migrate it to EncFS without re-encrypting it and thus without re-upload it to Dropbox?
nulll
  • 235
1
vote
2 answers

Encrypted USB with SSH keys system

I was thinking about having an encrypted USB flash memory where I would store some passwords and that kind of information. I want it to be encrypted just in case I lose it and someone finds it. I was wondering if it's possible to "encrypt" using…
Ckubrak
  • 93
1
vote
0 answers

Encrypt entire disk

I have multiple OS on my machine (debian, ubuntu and windows) I already have ubuntu and windows disks encrypted separately. I'm thinking about backing up all my data and reinstalling everything this week end, I want to know if there's a way to…
enzo
  • 111
  • 4
0
votes
0 answers

How can I encrypt files on a backup server with a password only?

I backup (rsync) my personal files to a remote Debian box. The server runs Debian stable and the files are stored in an external hard disk. Once the files are transferred, I want to encrypt them (or the whole external disk), using a password only,…
NoExpert
  • 489
0
votes
1 answer

Transparently encrypting folder

I want to encrypt the folder which contains my org-mode files at rest separate from OS level encryption. When working on these files, I would like them to be transparently decrypted so that I can use all file-based Linux and emacs tools, git, rsync,…
P.R.
  • 101
0
votes
0 answers

AES CBC encryption: does it make sense if I expose the IV along with encryption result (just for conveniently getting IV when decrypt)?

I have seen some code piece (for example, in Ruby) require 'openssl' def encrypt_aes_256_cbc(plain_text, encrypt_key) cipher = OpenSSL::Cipher::AES.new(256, :CBC) cipher.encrypt iv = cipher.random_iv cipher.key =…
osexp2000
  • 502
1
2