Icon View Thread

The following is the text of the current message along with any replies.
Messages 21 to 30 of 31 total
Thread Encryption
Thu, Mar 5 2009 3:31 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<<  EUREKA - scratch that last post. I HATE being beaten so I kept on. This
may be far from ideal but it works - YIPPEE. >>

Well, using stringlists for this is a no-no, since the encryption could
result in binary CR and LF characters.  What you want to use is the stream
wrapper code in edbcomps.pas (just nick it) along with normal TFileStream
objects.  Just read/write to the file using the TFileStream objects, and use
the wrapper objects for when you want to save and load the TFileStream
contents to and from the TEDBMemory stream objects.

<< Quick question - I assume the longer the digest the more secure? >>

Yes.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Mar 6 2009 3:46 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

>I meant you can grab the code - it will work outside of edbcomps.pas also.

For some reason I was assuming it was in edbcommon - no wonder I couldn't find it Smiley

Roy Lambert
Fri, Mar 6 2009 3:47 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

>Well, using stringlists for this is a no-no, since the encryption could
>result in binary CR and LF characters.

You would be right if I was trying to store the string, but all I would store in the string list in those circumstances would be a line holding '13' or '10'. Essentially it was the easiest way I could think of for storing the byte values in TEDBMemoryStream.Memory into and out of a file.

What you want to use is the stream
>wrapper code in edbcomps.pas (just nick it) along with normal TFileStream
>objects. Just read/write to the file using the TFileStream objects, and use
>the wrapper objects for when you want to save and load the TFileStream
>contents to and from the TEDBMemory stream objects.

Now I know where it is I'll have a go.

Roy Lambert
Fri, Mar 6 2009 11:10 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


I've been looking on the web and found some posts which seem to say that the blowfish key has to be formatted properly. Is there anything I need to take into account?

Roy Lambert
Tue, Mar 10 2009 4:32 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< You would be right if I was trying to store the string, but all I would
store in the string list in those circumstances would be a line holding '13'
or '10'. Essentially it was the easiest way I could think of for storing the
byte values in TEDBMemoryStream.Memory into and out of a file. >>

Duh, I missed that.  Yes, storing the ordinal as a character would get
around that. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Mar 10 2009 4:34 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I've been looking on the web and found some posts which seem to say that
the blowfish key has to be formatted properly. Is there anything I need to
take into account? >>

Could you give me some links so that I can understand the context in which
this is being stated ?

Thanks,

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Mar 10 2009 5:45 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

I'll try and recreate the search and find the sites. No guarantees.


Roy Lambert
Tue, Mar 10 2009 6:10 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


Here's one : http://www.geektimedesign.com/geek-stuff/tools-blowfish-generator.cfm which states "Blowfish keys must be formatted correctly"

The other I can't find again (I'm going to start keeping a file of web sites that prompt questions) but was on a forum somewhere and along the lines of "with this key we had a few records that didn't decrypt correctly so we changed it and now everything's fine".


Roy Lambert
Tue, Mar 10 2009 7:09 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Here's one :
http://www.geektimedesign.com/geek-stuff/tools-blowfish-generator.cfm which
states "Blowfish keys must be formatted correctly" >>

Well, the author doesn't bother to explain what he/she means, so that isn't
much help.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Mar 10 2009 8:35 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

>Well, the author doesn't bother to explain what he/she means, so that isn't
>much help.

Why do you think I asked you <vbg>. I thought you'll have researched it thoroughly so if there was any reason to be worried you'd know. Since you obviously have as much idea as I have I reckon its safe to ignore.

Roy Lambert
« Previous PagePage 3 of 4Next Page »
Jump to Page:  1 2 3 4
Image