LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-22-2021, 08:37 AM   #1
JASlinux
Member
 
Registered: Oct 2020
Posts: 378

Rep: Reputation: Disabled
Question Is OpenSSL damning for not storing file names?


Conventional archive decryption creates the names of the encrypted files, but OpenSSL expects the -out argument.

Does this have a design purpose?
 
Old 04-22-2021, 08:40 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Archiving != encryption.
 
Old 04-22-2021, 10:36 AM   #3
JASlinux
Member
 
Registered: Oct 2020
Posts: 378

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Archiving != encryption.
But you can encrypt an archive, so if your experience starts there, wouldn't it be normal to expect encryption software to perform similarly to archiving in password-protected compression software?
 
Old 04-22-2021, 10:42 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
If someone erroneously expects encryption to work like archiving, then yes, that may lead to many other wrong conclusions as well.

Encryption means taking a piece of data and running it through an algorithm to get ciphertext, which should look like random noise. There may or may not be an encryption key involved. The encryption may or may not be reversible. File names (or really files at all; it's just data) are not involved in the process.
 
Old 04-22-2021, 11:03 AM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
One might as well ask "why does not my modem record file names?"! Modulation and demodulation has nothing to do with files, only data. File names may be encapsulated within the data, but that has NOTHING to do with the modulation or demodulation, just as it has nothing directly to do with encryption. SSL encryption is independent of application.
 
Old 04-22-2021, 11:09 AM   #6
JASlinux
Member
 
Registered: Oct 2020
Posts: 378

Original Poster
Rep: Reputation: Disabled
I don't really have these God arguments, but it's interesting to me when scientific people go there (iow, something isn't the way it is because it has to be).

I see compression as inherently ciphered, and the files themselves as containers for archives.

You can run a file through a filter and consider the result new data, but it's really just the same file you input, all jumbled up.

An automatic .ciphered extension to the same file shouldn't surprise or offend anyone. Same the other direction.
 
Old 04-22-2021, 11:25 AM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Quote:
Originally Posted by JASlinux View Post
I see compression as inherently ciphered, and the files themselves as containers for archives.
There are some important nuances here, too.

Compressed data is encoded, not obfuscated. There's a big difference. No attempt has been made to hide the original data, and indeed some of it is often still readable. If some or all of the data does become unreadable to the naked eye, that's just a side-effect of the compression, not a goal in itself.

Also, data compression != archiving. The fact that several archive formats (such as the ubiquitous .zip format) support both functions somewhat obfuscates this reality, but compression and archiving are still very much separate processes.

Example: The tar utility creates multi-file archives, and that's really all it does. Telling tar to compress an archive just means it also pipes the data through a compression utility of some sort, such as gzip, bzip or xz.

If you open a compressed tar archive using a program with a GUI, this immediately becomes apparent: Open the file archive.tgz in 7-Zip, and you'll see within it another file, archive.tar. And inside of that file you'll find the actual archived data.
 
Old 04-23-2021, 02:17 AM   #8
JASlinux
Member
 
Registered: Oct 2020
Posts: 378

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Compressed data is encoded, not obfuscated. There's a big difference. No attempt has been made to hide the original data, and indeed some of it is often still readable. If some or all of the data does become unreadable to the naked eye, that's just a side-effect of the compression, not a goal in itself.
An argument isn't the purpose. I have not and will never state that archiving is the same as encryption.

I imagine as OpenSSL was designed for a different function (data streams?), they didn't deem it necessary to do the archive trick of outputting a file name, the one used as the encryption input.

The practical meaning, for me, is that I have to give OpenSSL encrypted files a name that indicates to me the file(s) I encrypted, manually.


The examples usually do that, but following them makes it blatently obvious to an insightful user that they're looking at an excrypted archive, when if a file name were stored in the encryption, you could name it anything and what you get out is what you put in.

Last edited by JASlinux; 04-23-2021 at 06:24 AM. Reason: grammar
 
  


Reply

Tags
archive, decryption, encryption, openssl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Chapter 6: Damning With Faint Praise - Take the Right Examples of Free Software and Exploit Them for Everything LXer Syndicated Linux News 0 06-06-2019 02:27 PM
[SOLVED] Burning with cdw: file names are too long, try "Long Joliet file names" lucmove Linux - Software 3 02-21-2017 06:06 AM
install of openssl-0.9.8b-8.3.el5 conflicts with file from package openssl-0.9.8b-8.3 jsaravana87 Linux - Server 1 09-26-2011 01:02 PM
Bash: bash file names are different than openbox trash file names whatthefunk Programming 4 02-15-2011 01:52 AM
oops openssl-0.9.8e over openssl-0.9.8d bad install now 2 copies? rcorkum Slackware 4 06-29-2007 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration