Welcome! Log In Create A New Profile

Advanced

Blowfish Encryption scheme

Posted by Bosher 
Bosher
Blowfish Encryption scheme
May 13, 2009 12:00AM
Hi guys,

Pulling a bit of a late one here (Brain fade...)

I am trying to sort out a WD based encryption scheme that is compatible with blowfish.
The documentation says that cryptfast uses a blowfish algorithm. It encodes it by default as ascii (encodePCS).

encodeNone produces a binary result, which seems to be my best starting point. My question is, how do I convert this binary result to Hex (Which is apparently what most other blowfish implementations do - could be very wrong here...)

Any help appreciated!

Cheers

Bosho
Xavier
Re: Blowfish Encryption scheme
May 13, 2009 07:14PM
Hey Bosher,

have a look at NumToString(<Numeric>,"X")

example 1:
   NumToString(1234,"04X") results '04D2'
example 2:
LOCAL
   lsTest is string = Caract(02) + "AZERTY" + CRLF
	
FOR i = 1 _TO_ Length(lsTest)
   Trace(i,lsTest[[i]],NumToString(Asc(lsTest[[i]]),"02X"))
END
cheers,
Xavier
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: