473,326 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Decrypt file in VB6 encrypted within VB Dot NET

I have been given a data feed to decrypt on a daily basis.

All i have been given is the KEY (8 chars) and a Vector (IV) of 8
chars.

I am using the cryptAPI in VB6 but can see no reference to the IV.

If the IV is used by .NET to create a HASK key, then does anyone know
what algorithm MS use?

Is the IV the same as SALT?

Lost and any help would be greatly appreciated.

Nov 21 '05 #1
6 2841

Well first you should now is the algorythm that would be a nice startpoint
:-)
in .Net a lot of algorythms are managed and complete in the framework ,,,
you throw in a init vector , and key and specify a algorythm ( Rijndael ,
DES , etc etc etc ) and there is your encrypted data

regards

Michel Posseth [MCP]
<ma********@safefinancials.co.uk> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I have been given a data feed to decrypt on a daily basis.

All i have been given is the KEY (8 chars) and a Vector (IV) of 8
chars.

I am using the cryptAPI in VB6 but can see no reference to the IV.

If the IV is used by .NET to create a HASK key, then does anyone know
what algorithm MS use?

Is the IV the same as SALT?

Lost and any help would be greatly appreciated.

Nov 21 '05 #2
Sorry...thought about that yesterday.

The .NET encryption is DES.

This is what they gave me:

TheKey = ASCIIEncoding.ASCII.GetBytes("&2DAF8%2")
Vector = ASCIIEncoding.ASCII.GetBytes("7B3.D6A*")
Dim des As New DESCryptoServiceProvider()

Regards

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 21 '05 #3
Yes, realised if forgot that key peice of information yesterday.

This is where im up to.....

- The algorithm being used is DES.
- I understand that the cipher is CBC (by default).
- ASCII key and IV supplied are 8 characters long
- No base64
- No compression (although i dont know for sure. They dont set
compression but still not convinved the the MS component maybe!?)

Ive tried various VB6 DLLs but few accept the IV attributes.

They are using the following code in VB.NET.

- TheKey = ASCIIEncoding.ASCII.GetBytes("%4BEF8&2")
- Vector = ASCIIEncoding.ASCII.GetBytes("7.B3*O3F")
- Dim des As New DESCryptoServiceProvider()
PLEASE help as i dont have much hair left on one side!!!

cheers

Nov 21 '05 #4
well could it be an option to use a COM interopted VB.Net dll in your VB6
program ??

This would mean that the target computer for your project must have the .Net
framework installed

Regards

Michel Posseth [MCP]

<ma********@safefinancials.co.uk> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Yes, realised if forgot that key peice of information yesterday.

This is where im up to.....

- The algorithm being used is DES.
- I understand that the cipher is CBC (by default).
- ASCII key and IV supplied are 8 characters long
- No base64
- No compression (although i dont know for sure. They dont set
compression but still not convinved the the MS component maybe!?)

Ive tried various VB6 DLLs but few accept the IV attributes.

They are using the following code in VB.NET.

- TheKey = ASCIIEncoding.ASCII.GetBytes("%4BEF8&2")
- Vector = ASCIIEncoding.ASCII.GetBytes("7.B3*O3F")
- Dim des As New DESCryptoServiceProvider()
PLEASE help as i dont have much hair left on one side!!!

cheers

Nov 21 '05 #5
The only issue is this app goes out to lots of other customers and i
dont want to impose the .net framework unless i have to.

i was hoping for a more native solution although i admit it would get
around the issue!!!

Many thanks for your answer

Nov 21 '05 #6
Found a component for www.weonlydo.com called WODCRYPT.

This component handles the IV and attributes useded within the .NET
components.

I had misconfigured this to start with, but once resolved it is doing
the job extreamly well!!!!

Thanks for your help

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JDupont | last post by:
How do I run a batch file from within vb.net?
6
by: Carolyn Vo | last post by:
Hi there! I have a string that was encrypted in Java using the classes DESKeySpec, SecretKeyFactory, SecretKey, and Cipher. It looks like using the SecretKeyFactory puts a transparent layer on...
5
by: Daniel Walzenbach | last post by:
Hi, I need to know how I could populate a word file from within ASP.NET and stream it out to some user (I can rely on all users have at least Word XP installed). The preferable solution would be...
4
by: MLH | last post by:
Setting form's Picture property to another file from within VBA doesn't repaint the form with new bitmap - for instance... Me.Picture = "c:\pics\MyNewPic.jpg" I tried Me.Repaint afterward,...
5
by: helloitsme | last post by:
Hello! Could someone please help me figure out how to run an executable file from within the soure code and pass the commands to the exe file to be launched! I was trying to use tools.shell,...
2
by: bean41 | last post by:
Hello, I am trying to create a program that asks that user to enter a user name and their password, which then allows them to install a setup file. I have programed up the password and...
4
by: cfor | last post by:
hi sir/mem, Please solve my problem "Decrypt md5 encrypted string.".
1
by: appar | last post by:
how to develop project for secure file sharing within departments in organization,to take log on report i.e who are logged in what they did, give outline, is possible in php or vb
6
by: angelicdevil | last post by:
how can i get the php to read the all the file names within a folder and put the names into an array?
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.