TeleFlow Forums
http://teleflow.org/phpbb/

encript/decript step
http://teleflow.org/phpbb/viewtopic.php?f=10&t=378
Page 1 of 1

Author:  saugortgarcia [ Thu Jun 29, 2006 2:00 pm ]
Post subject: 

Hi, <br>We are developing an interface beteween Teleflow and an external tcp/ip service. Through the interface will send sensible data. We know that we have an encript/decript step in teleflow. <br>If we sent an encripted text by teleflow, how could we decript it on the other side if the receiver is not teleflow? What/which is the mechanism used to decript an ecnripted text done by teleflow? <br> <br>Thanks

Author:  Tim [ Tue Jul 04, 2006 3:50 pm ]
Post subject: 

The encryption mechanism used by TeleFlow is Blowfish, in Cipher Block Chaining (CBC) mode. <br> <br>The tricky bit is that once TeleFlow encrypts your text, the encrypted data is binary, and TeleFlow does not have a storage type for binary data. All TeleFlow variables hold strings only. To work around this, TeleFlow stores the binary data in 2-character hexadecimal bytes. This is why there is a "Case option" property on the Encrypt step, so that you can choose whether you want upper or lower case letters for the alphabetic digits. <br> <br>So, in order to decrypt your data, you must first convert it from hexadecimal to binary. Take the first two characters of your encrypted string. They are the hexadecimal value of the first byte of your encrypted data. The next two characters are the second byte; and so on, until you reach the end of the string. <br> <br>Once you have a buffer of binary data, you can decrypt it to the original string using any implementation of the Blowfish algorithm in CBC mode, as long as you have the key you used for the original encryption. <br> <br>For more information on the Blowfish algorithm can be found here: <br><a href="http://www.schneier.com/blowfish.html" target="_new">http://www.schneier.com/blowfish.html</a>

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/