473,769 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3DES : .net Vs Capicom

Hi,

My question is about 3des, ... in fact the difference between 3DES with
Capicom (VB) and VB.net

With VB6/capicom, encrypting data is simple :
message.Content = "This is my bank account : Azerty007"
message.SetSecr et "MyPassword '
message.Algorit hm.KeyLength = CAPICOM_ENCRYPT ION_KEY_LENGTH_ 128_BITS
message.Algorit hm.Name = CAPICOM_ENCRYPT ION_ALGORITHM_3 DES
Result = message.Encrypt

As you can see, we only supply the 'secret' and that's it.

I try to do the same with VB.net and I am confused. Here is an example with
VB.net :

Dim encStream As New CryptoStream(fo ut, _
tdes.CreateEncr yptor(tdesKey, tdesIV), CryptoStreamMod e.Write)

The function take 2 parameters : the key (same as capicomp) an the desIV.

Even if I can get what is the meaning of the desIV, how can I make this work
? I imagine that Capicom used this parmeter but hardcoded, so wahat was the
value ?

Thanks for the advice.

Regards

FE
Nov 21 '05 #1
0 1461

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

Similar topics

0
1807
by: Mario Rodriguez | last post by:
Hi, I'm using interop-Capicom in my C# application, but when I try to use the CAPICOM_SMART_CARD_USER_STORE flag the following exception raises: The system cannot find the file specified. at CAPICOM.StoreClass.Open(CAPICOM_STORE_LOCATION StoreLocation, String Store Name, CAPICOM_STORE_OPEN_MODE OpenMode) at sugef.sicveca.capaPresentacion.windows.FindCertnet.Main(String args) in d:\documents and settings\mrodriguez\my documents\visual...
1
766
by: underwmd | last post by:
Hello, My problem is two fold. 1) I must support a deployed legacy application written in VB6 SP5. I need to export data from a database, compress it and the encrypt the data using 3DES (to prevent tampering) data gets transmitted at night to the home office of my company. Rewriting this application in .NET is not an option as the application was 5 years in development.
0
1154
by: Jonathan W. Zaleski | last post by:
I am trying to use the CAPICOM Package to Send Secure Emails, however, I am having a bit of trouble in getting it to work. I am able to get the proper certificate, and seemingly encode the 'EnvelopedData' correctly, but when attempting to open the sent message in Outlook I receive a: "Can't open this item. Your Digital ID name can not be found by the underlying security system." Error. I am unsure what this means exactly as it is not...
0
1162
by: John | last post by:
Hello, I am trying to create a dll that has a capicom reference in it. After I do the following: Dim message As New CAPICOM.EncryptedData I recompile my dll. I don't receive any errors or warnings at this point. Next, I take a generic application and import an inherited form from the dll and I get the error to check to see if the reference has already been added. I can leave the reference to capicom in the references section and...
2
3857
by: stéphane bard | last post by:
Hi all, Has anyone ever used Python to work with Certificate Services in Windows? I'm trying to capicom dll with pywin32. I've found some reference about python and capicom in this mail archive http://mail.python.org/pipermail/python-win32/2006-March.txt but nothing really helpfull.
1
8040
by: Sathyaish | last post by:
I have the following scenario: Algorithm: 3DES Cipher Mode: CBC Key Size: 128-bit Block Size: 64 bit IV: 0x0000000000000000 (an eight byte array of zeros) The results I get using .NET with the following routine are:
1
2573
by: CsharpDeveloper | last post by:
Hi, I have sucessfuly used the CAPICOM in .NET FrameWork, but when it comes to using in .NET Compact FrameWork it is giving me a COMException "Class not registered". I have created a Interop wrapper with .NET 2.0. I have used the following command to do it tlbImp "CAPICOM.dll" /namespace:CAPICOM /out:INTEROP.CAPICOM.dll The code snippet is as follows
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7409
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.