Michael,
        I checked out the article you mentioned.  The Hashing won't work
because they are all one-way.  And so I would actually need to store the
hashed password and/or the password itself in the application!  And the code
at the bottom of the article which takes you step by step thru the
encryption methods is the same as what I've done in Pascal as per my
previous message.  This article gave a better overall description of the
processes involved and I wish I had seen this earlier as it might have
shaved an hour or so off the time it took me to figure this out but in the
end it's exactly the same. 

from: Robert Meek at: [EMAIL PROTECTED] 
dba "Tangentals Design" home of "PoBoy"
freeware Windows apps and utilities
located at: www.TangentalsDesign.com
Proud to be a moderator for the
"Delphi Programming Lists" at: elists.org 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Darling, Michael
Sent: Wednesday, November 09, 2005 10:35 AM
To: Borland's Delphi Discussion List
Subject: RE: Bytes, strings, and streams

Robert,

Look at this article it covers encrypting strings and moves onto
streams:

http://msdn.microsoft.com/library/en-us/dnnetsec/html/cryptosimplified.a
sp?frame=true

I spent a good while looking at cryptography in .NET but as you have
found most of it relates to processing large streams. Simply encrypting
a string is called hashing which is much easier to do. In fact most the
cryptography examples I looked at created a string hash to merge into
the encrypted streams, I just didn't realise I was already doing the
string encryption I needed, doh!


Michael Darling
Senior Solutions Developer
ROOM Solutions Ltd
mailto:[EMAIL PROTECTED]


-----Original Message-----
Robert Meek [mailto:[EMAIL PROTECTED] asked:
>       Actually I am using NET and the algorithms I'm trying to use are
those provided by the clr.  It seems to have available just about
anything I might need except as I said they all work with a MemoryStream
and byte variables.  I tried typecasting but that didn't seem to work
and I don't know if I can substitute a different stream type...but I'll
give it a try and see what happens.  One thing though, it seems a
terrible waste to use a stream just for a single string of perhaps 8
chars, but I haven't had any luck finding any specific string handling
encryption routines...good ones...that can be used in NET except for
paid libraries.
*******************************************************************
CONFIDENTIALITY NOTICE/DISCLAIMER
This email and any attachments are confidential, protected by
copyright/intellectual property rights and may be legally privileged. The
information transmitted is intended only for the person or entity to which
it is addressed.  If you are not the intended recipient, dissemination or
copying of this email is prohibited.
If you have received this in error, please notify us by forwarding this
email to the following address: [EMAIL PROTECTED] , and then delete the
email completely from your system.
This email and any attachments have been scanned for computer viruses by a
market leading anti-virus system. However, it is the responsibility of the
recipient to conduct its own security measures. No responsibility is
accepted by ROOM Solutions Limited for loss or damage arising from the
receipt or use of this email and any attachments.
No responsibility is accepted by ROOM Solutions Limited for personal emails.
ROOM Solutions Ltd, http://www.roomsolutions.net
********************************************************************
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to