Problem while working on BlowFish Encryption using C++,VB

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.

And how do i do the interface for the program using VB
Anyone can help
me,please??
aldenneohAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sunnycoderCommented:
I know a bit of C++ as well as cryptography but I am unable to make out what is the question !!!!
What is the problem ? You want help in debugging your encryption or building a GUI to your module or what ?
0
sunnycoderCommented:
Here the source code for blowfish written by none other than Bruce Schneier
http://www.schneier.com/blowfish-download.html

If you still need some help, post here
0
Ralf KlattEmployee in Civil ServiceCommented:
Hi,

To get deeper into it -> also regarding vb interface <- check this address:
http://www.di-mgt.com.au/crypto.html

Another resource (VB.NET):
http://www.vbdotnetheaven.com/Code/Jun2003/2002.asp

Crypto Link Farms:
http://www.cs.fsu.edu/~yasinsac/links.htm

Best regards, Raisor
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

sunnycoderCommented:
Raisor,
http://www.di-mgt.com.au/crypto.html
Isn't this the download link for VB code on the page which I posted ?
0
Ralf KlattEmployee in Civil ServiceCommented:
Hi,

Why are you asking me that sunnycoder?

Anyone looking at http://www.di-mgt.com.au/crypto.html will see that there's common content but also other content than on http://www.schneier.com/blowfish-download.html ...

I think aldenneoh won't mind a little more information than Bruce Schneiers' Self Featuring Site ...

... by the way, I prefer http://www.di-mgt.com.au/crypto.html ... ;-))

Best regards, Raisor
0
sunnycoderCommented:
No offence intended Raisor,

http://www.schneier.com/blowfish-download.html has links for downloading the source code in various languages ... The link (on the "Bruce Schneiers' Self Featuring Site" ) for downloading VB code is http://www.di-mgt.com.au/crypto.html ... hence I asked you.

Best regards,
Sunny
0
Ralf KlattEmployee in Civil ServiceCommented:
Hi,

OK -> I had a glance at it and I see what you mean -> most of the time there is more than just one way to reach the same point ;-)) ... I hope all this here can help aldenneoh to find the desired solution!

Best regards, Raisor
0
SubodhKatiyarCommented:
hi aldenneoh

looks like there is a lot fight about the blockthings
here is the tip for vb and if you don't still have the block code i will send you one i wrote
you will need to insert a module in your vbproject and
declare the interface for you c public function there
like
Public Declare function DoBlockcypher Lib "Path.and.name.of.your.dll.in.case.it.is.not.in.system32.path" (byref inval as string, other parameters) as long.or.what.u.want.to.return
get the cypher from the dll function and write the returned byref string to the file using file write fuinction of vb.
once the dll is loaded in memory it is thundering fast,one more thing c expects the strings to be concatenated with \0 so pass string will vbnullcharacter attached.
points to remember ..
your c++ dll requires to have
Extern WINAPI functionname declaration.
and in def file you have to export these functions
.Exports
@1 DoBlockcypher

got some idea now?
0
aldenneohAuthor Commented:
Regarding the Blowfish using C++,what I meant here is I need to build a GUI. So I need the source code about the encryption and decryption using block cipher.

Besides,I also need to use VB to build a interface for the GUI
0
Ralf KlattEmployee in Civil ServiceCommented:
Hi,

Here's a downloadable sample:
http://www.codeproject.com/cpp/filecryptapp.asp

Is that ok for you?

Best regards, Raisor
0
aldenneohAuthor Commented:
Sorry everyone.I have to clarify that I already manage to encrypt/decrypt a file.Now I wish to use the block cipher method to make my program better.
So anyone is expert in C++ and Blowfish ?
0
Ralf KlattEmployee in Civil ServiceCommented:
Hi,

>>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.<<

Well, it' good to know that you already manage encryption/decryption ... I suggest you have a look at this here: http://www.cryptosys.net/rijndael.html

Im sure you'll find a way to get in touch with Joan Daemen or Vincent Rijmen as this seems to me a little more than just doing someones' homework ;-))


Best regards, Raisor
0
sunnycoderCommented:
>Now I wish to use the block cipher method to make my program better.

OK what is the error ... where are you stuck .. post some details
0
aldenneohAuthor Commented:
Actually what i know need is the program code,not the source code for blowfish.Anyway thanks for all your help.have a nice day
0
sunnycoderCommented:
aldenneoh,

>Actually what i know need is the program code,not the source code for blowfish.Anyway thanks for all your help.have a nice day

Do you want us to program blowfish in block cipher mode, build a GUI for it and post the code here ? If yes, you might get disappointed.
0
aldenneohAuthor Commented:
Sorry i not mean that i can get the sull code here.My main objective is to know how to use block cipher in Blowfish programming.

Thanks for all your help
0
sunnycoderCommented:
>know how to use block cipher in Blowfish programming.

http://www.freesoft.org/CIE/Topics/143.htm
I would have copy pasted it here if pictures were allowed;o)

http://home.ecn.ab.ca/~jsavard/crypto/co040601.htm
Link gives a very good overview but with a DES example ... holds just as good for blowfish

code for block ciphered blowfish but in C
http://people.redhat.com/jbj/beecrypt/html/group__BC__blowfish__m.html

Take time to study these links, you would be able to code block ciphering easily once you know the concept ... infact block ciphering is easier than coding the algorithm itself
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aldenneohAuthor Commented:
Thanks for your help.Please give me some times.I will try to work it out.
I am sure i will give you a satisfied reply as soon as possible
0
aldenneohAuthor Commented:
Sorry.I not sure what i supposed to do.Actually I didnt get the actual answer.But sunnycoder and raisor did give me some useful website for reference.So what should i do?Give half of the points?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.