
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
[EMAIL PROTECTED] (alden) wrote in message news:<[EMAIL PROTECTED]>... > I am new here.Can I know who is expert in C++ or Blowfish encryption?? > I need their help. > > I'm currently working on the Blowfish encryption project using > C++.I'm facing a problem.I wish to encrypt a file with unlimited length. > For example,it encrypt first 5 character,send to a file.Then continue > encrypt the next 5 character and send to the same file as previous. > I try to use block cipher but fail to complete it.Anyone can help > me,please?? The obvious flaw in this is that Blowfish encrypts 64 bits at one time. 64 bits is 8 bytes, not 5 bytes. Therefore this method would probably fail. You should process 8 characters at one time (assuming 1 unsigned char takes up 1 byte) using Blowfish. Convert them into 32-bit words XL and XR, then encrypt those under Blowfish. Convert the 32-bit words back into chars, and send them to the file. -- Benjamin Choi
| <-- __Chronological__ --> | <-- __Thread__ --> |