473,387 Members | 1,529 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,387 software developers and data experts.

chilkatdotnet4.dll crypt2.decryptbytes method return 0 bytes in vb.net

Hi We have been using ChilkatDotNet.dll Version 8.2.0 with .Net Framework. We use Chilkat.MIME and Chilkat.Crypt2 classes. The Framework version of ChilKatDotNet.dll is working But the ChilkatDotNet4.DLL is not working with Similar functional.

The Old Working Code:

Expand|Select|Wrap|Line Numbers
  1. Dim _tempMime As String = Incoming Data 
  2. _Body = New Chilkat.Mime 
  3. Dim _EncodedContent As Byte() = System.Text.Encoding.GetEncoding(1252).GetBytes(_tempMime)_Body.LoadMimeBinary(_EncodedContent) 
  4. Dim _crypt As New Chilkat.Crypt2 _crypt.CryptAlgorithm = "PKI" 
  5. _RawContent = _crypt.DecryptBytes(_Body.GetBodyBinary())
New and not working code:
Expand|Select|Wrap|Line Numbers
  1. Dim _tempMime As String = Incoming Data 
  2. _Body = New Chilkat.Mime 
  3. Dim _EncodedContent As Byte() = System.Text.Encoding.GetEncoding(1252).GetBytes(_tempMime)_Body.LoadMimeBytes(_EncodedContent) 
  4. Dim _crypt As New Chilkat.Crypt2 _crypt.CryptAlgorithm = "PKI" 
  5. _RawContent = _crypt.DecryptBytes(_Body.GetBodyBinary())
Only Change is that LoadMimeBinary is not available ChilkatDotNEt4.dll so using LoadMimeBytes.
here LoadMimeBinary(ChilkatDotNet.dll ) and LoadMimeBytes(ChilkatDotNet4.dll) methods returns same value of bytes.

With this _crypt.DecryptBytes returns 0 Bytes.
chilkat log file shows message as
"Found matching certificate.
Found matching certificate, but no private key is available."

Thanks Advance. .
May 16 '13 #1
0 1183

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: techie | last post by:
I have an unmanaged VC++ application calls a COM object which will be implemented in C#. The VC++ call is: BOOL res; VERIFY( importFilt->Import(&res) == S_OK ); My C# method is:
5
by: jmd | last post by:
hello. i am trying VC++ 7.1 (with vsnet 2003). my example : class Complex { public: Complex ( float re_ = 0.0, float im_ = 0.0 ) : re(re_), im(im_) {} float Re () { return ( re ); } float...
0
by: jeytu | last post by:
Hi all, I'm a newbie with .net. I have created a web method that would return a class. The definition of the class is <Serializable()> Public Class Response Dim l_status As Boolean ...
3
by: RdS | last post by:
Where do I find return codes for MS methods. For instance the filesystemobject methods. I need to know what methods return (error codes, etc. and what they mean). I have searched MSDN and of...
3
by: robert | last post by:
Hello, I trying to determine whether or not it is possible to create a web service whose methods are declared to return interfaces. I have been researching it and have found lots of hints and...
3
by: BombDrop | last post by:
Can any one help I have a method that will return a List to be bound as a datasource to a combobox see code for population below. I get the following error when i try to compile Error 29 ...
12
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, I have a class which "BiologySequence" which looks about like this. public class BiologySequence { private string _Sequence; public string Sequence {
4
by: Jonathan | last post by:
I have a SQL stored procedure for adding a new record in a transactions table. It also has two return values: CounterID and IDKey. I want to create a webservice that accepts the 10 input...
4
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
I'm do meore and more with extention methods, totally cool. They are making life much easier for IU developers. I'm trying to add a return type of struct to a asp.net DropDownList of type struct....
1
by: firebirds98 | last post by:
I am building an application in which sends an outside server data, it then shoots back data which pertains to what I sent. The problem that I am having is that the maximum amount of bytes tha will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
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...

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.