Blowfish decryption for vb on .net compact framework

G

Guest

Hi guys,
I've been searching for days now looking for an implementation of blowfish
that I can use for my pocket pc app. I have found numerous C# and C++
examples, but I am looking for something to use in my Visual Basic App.
Does anyone know where I can find an (open source) VB implementation of
blowfish that will work on a pocket pc?

Otherwise, is there some way I can use a C# implementation in my VB project
without manually going through and converting it to VB code?

Thanks in advance,
Joe
 
G

Guest

Add a C# class library project to your solution, add in the C# code, then
reference it from your VB projects.

-Chris
 
G

Guest

Ok, I've done that successfully.. but how do I use the classes?
I've put made a new C# class library (called Blowfish) but I can't import
the classes in my VB Forms..

There are two classes (Blowfish and BlowfishStream)
 
S

Sergey Bogdanov

Did you add reference to C# project?

1. Project->Add Reference->Projects tab
2. Select C# project
 
G

Guest

3. Add "Imports MyC#ProjectNamespace" at the top of your VB code page

-Chris


Sergey Bogdanov said:
Did you add reference to C# project?

1. Project->Add Reference->Projects tab
2. Select C# project


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Ok, I've done that successfully.. but how do I use the classes?
I've put made a new C# class library (called Blowfish) but I can't import
the classes in my VB Forms..

There are two classes (Blowfish and BlowfishStream)
 
S

Sergey Bogdanov

Right, I omitted it because he mentioned about Imports :)


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


3. Add "Imports MyC#ProjectNamespace" at the top of your VB code page

-Chris


Did you add reference to C# project?

1. Project->Add Reference->Projects tab
2. Select C# project


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Ok, I've done that successfully.. but how do I use the classes?
I've put made a new C# class library (called Blowfish) but I can't import
the classes in my VB Forms..

There are two classes (Blowfish and BlowfishStream)

:



Add a C# class library project to your solution, add in the C# code, then
reference it from your VB projects.

-Chris




Hi guys,
I've been searching for days now looking for an implementation of
blowfish
that I can use for my pocket pc app. I have found numerous C# and C++
examples, but I am looking for something to use in my Visual Basic App.
Does anyone know where I can find an (open source) VB implementation of
blowfish that will work on a pocket pc?

Otherwise, is there some way I can use a C# implementation in my VB
project
without manually going through and converting it to VB code?

Thanks in advance,
Joe
 
G

Guest

Thanks to the both of you, that did the trick :)

Sergey Bogdanov said:
Did you add reference to C# project?

1. Project->Add Reference->Projects tab
2. Select C# project


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Ok, I've done that successfully.. but how do I use the classes?
I've put made a new C# class library (called Blowfish) but I can't import
the classes in my VB Forms..

There are two classes (Blowfish and BlowfishStream)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top