Hello,
I want to encrypt a file with its filename.
I can encrypt the file itself using the frame libraries.
How can I now best hide the filename and extension?
Within the file, ... ?
I must be able to retrieve the filename after decrypting.
The original files have random filenames and extensions.
example:
original file: username.sec
encrypted file with orig filename: username.sec
encrypted file with encrypted filename: mydate.dat
After encryption I must have username.sec again.
TIA 3 1697
* "dick" <di**@nospam.co m> scripsit: I want to encrypt a file with its filename. I can encrypt the file itself using the frame libraries.
How can I now best hide the filename and extension? Within the file, ... ?
I must be able to retrieve the filename after decrypting. The original files have random filenames and extensions.
example:
original file: username.sec encrypted file with orig filename: username.sec encrypted file with encrypted filename: mydate.dat
After encryption I must have username.sec again.
This would make encryption useless. The key used for
encrtyption/decryption is the most important part and storing it in a
format that can be easily read doesn't make much sense.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Hello,
I don't mean storing the key, but the actual filename.
When the file is named "user.jpg", I want it saved as Enc1.dat or something
like that.
Later I must be able to retrieve the original filename from the encrypted
file, for restoring to the original file.
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:2j******** *****@uni-berlin.de... * "dick" <di**@nospam.co m> scripsit: I want to encrypt a file with its filename. I can encrypt the file itself using the frame libraries.
How can I now best hide the filename and extension? Within the file, ... ?
I must be able to retrieve the filename after decrypting. The original files have random filenames and extensions.
example:
original file: username.sec encrypted file with orig filename: username.sec encrypted file with encrypted filename: mydate.dat
After encryption I must have username.sec again.
This would make encryption useless. The key used for encrtyption/decryption is the most important part and storing it in a format that can be easily read doesn't make much sense.
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
* "dick" <di**@nospam.co m> scripsit: I don't mean storing the key, but the actual filename.
OK, I misread your question, I thought you are using the filename as
encryption key. You can, for example, add sort of "header" to your file
that contains the file name. A very simple approach would be to store
the filename followed by a certain sequence of characters at the
beginning of the file. Then you will have to extract this data and pass
the rest of the file to your decryption routine.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul Rogers |
last post by:
Hi, im wanting to outpout a binary file from ASP, but encrypt it on the fly
according to a given seed (retrieved according to the users login).
But ive fallen at the first hurdle, and cant even seem to get access to the
raw bytes of the file as I pass it through. The code I have written is thus:
----------------
objStream.LoadFromFile( "D:\\" + filename );
//Output the contents of the stream object
|
by: Piotr |
last post by:
MS has published on its sites javascript encoder, which enables "encrypting"
javascript code. It allows hiding js code from being seen as a text file.
There is a decoder for it, available in the net, freeware, srcdec14.exe.
I have tested both, encrypting, decrypting, the source and the final files
are identical.
But what I met on a certain site is a js file, encoded I think in another
way, because I cannot decrypt it using the...
|
by: Dayne |
last post by:
Guys,
I am writing a database application(vb.net , sql server) and is presently
storing the connection settings in a xml file...not very secure though. What
is a safer method in a dynamic environment?
Dayne
|
by: dick |
last post by:
Hello,
I want to encrypt a file with its filename.
I can encrypt the file itself using the frame libraries.
How can I now best hide the filename and extension?
Within the file, ... ?
I must be able to retrieve the filename after decrypting.
The original files have random filenames and extensions.
|
by: KC Eric |
last post by:
Hi everyone,
How can one encrypt an entire file? What I mean is not simply encrypting
the content of the file, but also the file's property(e.g. file creation
date, file's name, access right, etc), so the input is a file, say
abc.txt, after encryption and then decryption, the user can get the
whole abc.txt file instead of just the content of the file.
Thanks a lot!
| |
by: Chris Dunaway |
last post by:
I have an application which is installed on a network share to be run
from one or more workstations. I have granted trust to the
applications on the workstations and the appropriate permissions on the
shared folder and the user's can execute the app with no problem.
I do have a problem, however, after the application starts. In the
application's .config file, the connectionStrings section of the file
is encrypted upon first run of the...
|
by: Brian Huether |
last post by:
I have a function that serves audio as a stream. I don't want people to see
the filename. But I am using urls of this sort:
audio.php?op=serveaudio&file=www.somefile.mp3
1) How can I encrypt www.somefile.mp3 and then reconstruct it?
2) How should I really be doing this? Should I be putting the file name into
a server variable? If so, what would that syntax be?
|
by: dfa_geko |
last post by:
Hi All,
I had a question about encrypting and decrypting XML files using asymmetric
keys. I copied some sample code from MSDN, here are the samples:
http://msdn2.microsoft.com/en-us/library/ms229746.aspx
http://msdn2.microsoft.com/en-us/library/ms229919.aspx
The samples I used are the ones near the bottom of the page. (With a slight
modification of moving edElement.KeyInfo.AddClause(new KeyInfoEncryptedKey
|
by: per9000 |
last post by:
Hi python people,
I am trying to figure out the best way to encrypt files in python.
I've build a small script (see below) that encrypts the ubuntu 7.04
iso file in 2 minutes (I like python :) ).
But I have some thoughts about it. By pure luck (?) this file happened
to be N*512 bytes long so I do not have to add crap at the end - but
on files of the size N*512 + M (M != 521) I will add some crap to make
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |