I know this has been probably covered a lot, but hopefully someone can
help me out. Awhile back, I was doing some searching on encryption
methods and found an example to where you can take very large amounts
of text and encrypt that down to a very small string. So, basically
you could take the US Constitution and get that down to something like
a 64 character string. My assumption is that there would be a key
invovled. I am looking to basically encrypt a large amount of text, say
1000 charactes, and get it down to about 50 characters, and then with
a decryption method, give me the results. Could anyone point me in a
method that could probably help me out with this? I will can use
either .NET 1.1 or 2.0
Thank you for your help. 3 1627
Are you sure you aren't talking about compression?
<xa********@xan thviper.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . I know this has been probably covered a lot, but hopefully someone can help me out. Awhile back, I was doing some searching on encryption methods and found an example to where you can take very large amounts of text and encrypt that down to a very small string. So, basically you could take the US Constitution and get that down to something like a 64 character string. My assumption is that there would be a key invovled. I am looking to basically encrypt a large amount of text, say 1000 charactes, and get it down to about 50 characters, and then with a decryption method, give me the results. Could anyone point me in a method that could probably help me out with this? I will can use either .NET 1.1 or 2.0
Thank you for your help.
Like Peter said, you are looking for compression, not encryption. In
2.0 there are compression classes available, but for 1.x you'll need
to find a third party library (try searching the web for SharpZipLib).
What you describe (taking a long document and generating a string of X
characters) is available, but it is known as a hash. A hash is
irreversible, so you can't pass the hash to an algorithm and get the
original document back.
--
Scott http://www.OdeToCode.com/blogs/scott/
On 4 Oct 2005 22:51:41 -0700, xa********@xant hviper.com wrote: I know this has been probably covered a lot, but hopefully someone can help me out. Awhile back, I was doing some searching on encryption methods and found an example to where you can take very large amounts of text and encrypt that down to a very small string. So, basically you could take the US Constitution and get that down to something like a 64 character string. My assumption is that there would be a key invovled. I am looking to basically encrypt a large amount of text, say 1000 charactes, and get it down to about 50 characters, and then with a decryption method, give me the results. Could anyone point me in a method that could probably help me out with this? I will can use either .NET 1.1 or 2.0
Thank you for your help.
You know, when I was typing this out last night, it didn't even cross
my mind to think about compression as it is probably the right way to
go, so much for thinking clearly after a long day.
What I am looking to do is to take a .INI file I have for an applicaton
I have created and compress that data down to a nominal size. So in
other words, take the contents of the .INI file and make that ini file
now be:
compresseddatah ere.test
There is a good reason as to why I want to do this according to the way
the application works and it's deployment over the web so please bear
with me if it sounds kind of a dumb thing to do. I was looking into
encryption originally since I was thinking that since I really don't
want people nosing around with the data inside of the ini file, that
would have been the best way to go. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Blake T. Garretson |
last post by:
I want to save some sensitive data (passwords, PIN numbers, etc.) to
disk in a secure manner in one of my programs. What is the
easiest/best way to accomplish strong file encryption in Python? Any
modern block cipher will do: AES, Blowfish, etc. I'm not looking for
public key stuff; I just want to provide a pass-phrase.
I found a few modules out there, but they seem to be all but abandoned.
Most seem to have died several years ago. ...
|
by: c duden |
last post by:
I am attempting to encrypt some text and be able to decrypt it at a later
time. I have two methods to do this:
public static Byte EncryptText(string textToEncrypt, string
encryptionHash)
{
Byte bytearrayinput =
StringAndByteManipulation.ConvertStringToByteArray(textToEncrypt);
//DES instance
System.Security.Cryptography.TripleDESCryptoServiceProvider des = new
|
by: Bonj |
last post by:
I was in need of an encryption algorithm to the following requirements:
1) Must be capable of encrypting strings to a byte array, and decyrpting
back again to the same string
2) Must have the same algorithm work with strings that may or may not be
unicode
3) Number of bytes back must either be <= number of _TCHARs in *
sizeof(_TCHAR), or the relation between output size and input size can be
calculated simply. Has to take into account the...
|
by: Alan Silver |
last post by:
Hello,
I am writing a page where sensitive data is collected (over SSL) and
stored in a database. I have been looking at the .NET encryption
classes, but am a bit confused as to which is best for my purposes.
There seem to be quite a few different ways of doing it, and I'm not
sure what's most suitable for me.
Anyone any suggestions? I only need to be able to store the data in such
a way that someone without access to my (to see how...
|
by: Danny van Kasteel |
last post by:
Hi,
I've been reading the thread, and one thing that struck me as odd was that
you are trying to mimic an immensely difficult and sensitive procedure by
re-inventing the wheel...
First of all, it is perfectly possible to convert a large amount of
characters into a byte array using the system.text.encoding namespace.
Secondly, and most importantly, why not use the System.Security.Encryption
| |
by: larry mckay |
last post by:
Hi,
Does anyone have any simple text string encryption routines that are
easy to implement? I'm trying to prevent users and system
administrators from figuring out how I implement things.
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
|
by: Anon |
last post by:
I made this class to encrypt my DataSet before saving it
to disk. So, first in the main program I write the
DataSet to XML in a MemoryStream. I pass this stream to
the E_File sub, which encrypts the stream and writes it
out to the FileStream. Now, in the D_File function, I
read the encrypted file into a FileStream, then decrypt
it into a MemoryStream, which I pass back to my DataSet
and Read the XML into the DataSet. The problem I'm...
|
by: manmit.walia |
last post by:
Hello Everyone,
Long time ago, I posted a small problem I had about converting a VB6
program to C#. Well with the help with everyone I got it converted.
But I overlooked something and don't understand why it is doing this.
Below is my code, I would be greatfull if someone can guide me through
the right path or even help me solve this issue.
Problem: The old tool which was written in VB6 works perfect. But I
needed to convert this to C#...
|
by: Wilson |
last post by:
i am learning to program using c++ and was set a task of making a
simple encryption algorithim. I choose to start with one where simply
each letter is replaced with its equivilent in the alphabet when
written backmards, i am hoping to make this more complex soon. Below
is the program i wrote but it does not work, it simply returns the
exact same text you enter. Could you please advise on how to sort
this, and also suggest any ways of...
|
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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |