I have couple of object I serialise and store them in file between
session. If you open the files you could see the string values. I want
a way to encrypt the data so that if anyone opens the file they
shouldn't be able to read it. Just to increase the security of the
system. How can I do this?
Thanks. 6 2158
DBC: Although I am not an expert, I want to offer the following advice.
If you want to encrypt the values, the best way I can think of doing
this is to write the serialization to a temporary file, then run that
file through your favorite encryption algorithm and save the encrypted
file. Have fun :)
DBC User wrote:
I have couple of object I serialise and store them in file between
session. If you open the files you could see the string values. I want
a way to encrypt the data so that if anyone opens the file they
shouldn't be able to read it. Just to increase the security of the
system. How can I do this?
Thanks.
On 5 Jan 2007 20:26:35 -0800, "CodeLeon" <le*******@gmai l.comwrote:
Be aware that encrypted data will contain apparently random bytes,
including a lot of control characters etc. It will probably be safer
to convert the encrypted byte array into Base64 or similar before
saving it.
rossum
>DBC: Although I am not an expert, I want to offer the following advice.
If you want to encrypt the values, the best way I can think of doing this is to write the serialization to a temporary file, then run that file through your favorite encryption algorithm and save the encrypted file. Have fun :)
DBC User wrote:
>I have couple of object I serialise and store them in file between session. If you open the files you could see the string values. I want a way to encrypt the data so that if anyone opens the file they shouldn't be able to read it. Just to increase the security of the system. How can I do this? Thanks.
You're right... in fact, that's what i did when i needed to create a
user database with xml. I just forgot.... sorry! That's a really good
idea, DBC, you should use rossum's advice.
rossum wrote:
On 5 Jan 2007 20:26:35 -0800, "CodeLeon" <le*******@gmai l.comwrote:
Be aware that encrypted data will contain apparently random bytes,
including a lot of control characters etc. It will probably be safer
to convert the encrypted byte array into Base64 or similar before
saving it.
rossum
DBC: Although I am not an expert, I want to offer the following advice.
If you want to encrypt the values, the best way I can think of doing
this is to write the serialization to a temporary file, then run that
file through your favorite encryption algorithm and save the encrypted
file. Have fun :)
DBC User wrote:
I have couple of object I serialise and store them in file between
session. If you open the files you could see the string values. I want
a way to encrypt the data so that if anyone opens the file they
shouldn't be able to read it. Just to increase the security of the
system. How can I do this?
Thanks.
Just a thought. That should not be an issue as you can read and write it as
binary data (like any binary file). So you can remove the overhead of a
base64 conversion,whic h does not really buy you anything unless you want to
pass it around in email or something.
--
William Stacey [C# MVP]
"rossum" <ro******@coldm ail.comwrote in message
news:as******** *************** *********@4ax.c om...
| On 5 Jan 2007 20:26:35 -0800, "CodeLeon" <le*******@gmai l.comwrote:
| Be aware that encrypted data will contain apparently random bytes,
| including a lot of control characters etc. It will probably be safer
| to convert the encrypted byte array into Base64 or similar before
| saving it.
|
| rossum
|
|
| >DBC: Although I am not an expert, I want to offer the following advice.
| >
| >If you want to encrypt the values, the best way I can think of doing
| >this is to write the serialization to a temporary file, then run that
| >file through your favorite encryption algorithm and save the encrypted
| >file. Have fun :)
| >
| >DBC User wrote:
| >I have couple of object I serialise and store them in file between
| >session. If you open the files you could see the string values. I want
| >a way to encrypt the data so that if anyone opens the file they
| >shouldn't be able to read it. Just to increase the security of the
| >system. How can I do this?
| >Thanks.
|
That's another good idea. Base64 is known for its overhead, and if you
are writing to a binary file.... then you don't necessarily need b64.
William Stacey [C# MVP] wrote:
Just a thought. That should not be an issue as you can read and write it as
binary data (like any binary file). So you can remove the overhead of a
base64 conversion,whic h does not really buy you anything unless you want to
pass it around in email or something.
--
William Stacey [C# MVP]
"rossum" <ro******@coldm ail.comwrote in message
news:as******** *************** *********@4ax.c om...
| On 5 Jan 2007 20:26:35 -0800, "CodeLeon" <le*******@gmai l.comwrote:
| Be aware that encrypted data will contain apparently random bytes,
| including a lot of control characters etc. It will probably be safer
| to convert the encrypted byte array into Base64 or similar before
| saving it.
|
| rossum
|
|
| >DBC: Although I am not an expert, I want to offer the following advice.
| >
| >If you want to encrypt the values, the best way I can think of doing
| >this is to write the serialization to a temporary file, then run that
| >file through your favorite encryption algorithm and save the encrypted
| >file. Have fun :)
| >
| >DBC User wrote:
| >I have couple of object I serialise and store them in file between
| >session. If you open the files you could see the string values. I want
| >a way to encrypt the data so that if anyone opens the file they
| >shouldn't be able to read it. Just to increase the security of the
| >system. How can I do this?
| >Thanks.
|
All,
Thank you very much and is a very helpful. I will write some test code
and see if that resolves my problem. By anychance does any one have any
code snippets on this?
Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: steve |
last post by:
Hi,
I know there are a few free and paid php source code encryption
scripts around. Has anyone used one, and any feedback?
I am interested in encrypting source that is placed on a remote host.
--
Posted using the http://www.dbForumz.com/ interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-Obfuscating-Encrypting-ftopict187987.html
|
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: John J. Hughes II |
last post by:
Using the below code I am send multiple sterilized object across an IP port.
This works fine if only one object is received at a time but with packing
sometimes there is more then one object or half an object in the received
data. If I place the data in a memory stream on the received side is there
a way to determine where one ends and the next one start?
Since the deserializer stream seems to move the pointer I am trying to look
at the...
|
by: Richard L Rosenheim |
last post by:
Anyone care to express their two cents over pros and cons of encrypting the
data being transmitted (within the SOAP package) versus just utilizing a
HTTPS connection?
Richard Rosenheim
| |
by: Amar |
last post by:
Hi All,
I want to insert my password into the mysql database by encrypting it
so that I can also retrieve the password. Before I was using sha1()
for encrypting password,but it is an one way method.
I want to use a function that can be decrypted . Please help me.
Thanks
Amar
|
by: SeeSharp Bint |
last post by:
Visual Studio 2005, dotnet, c#. Microsoft SQL Server. Windows XP forms
application.
Temporarily, for my database application, I have been storing the various
elements of database connection items like datasource,password,userid as
plain strings in the registry.
I'd now like to make these secure against people reading them.
I thought of encrypting/decrypting each string when i write to the registry
but I wouldnt know where to find a...
|
by: NavinJ |
last post by:
I want to encrypt an object of my Windows Forms application using RSACryptoServiceProvider class and then serialize the encrypted object. The problem is, the RSACryptoServiceProvider.Encrypt() method takes the data to be encrypted as a byte parameter and not System.Object.
Is there any workaround for this?
Is there any way to convert any arbitrary object into a byte array WITHOUT serializing the plain object ? (serializing it using...
|
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:
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |