Release Notes for 3-November-2008 Update

New versions of most Chilkat components were released on 3-November-2008. This blog post lists the major changes and new features. For those components with no apparent changes, minor new versions are released to take advantage of any underlying improvements in the internal (Chilkat) libs that form the base of all Chilkat products. New Products, Features, and Fixes Chilkat SSH / […]

Diffie-Hellman Random Number Generation

Question: (Regarding the Chilkat Diffie-Hellman Component/Library) If it is possible, we´d like to know what algorithm is used to generate random numbers because one of our clients is very strict with security and they demand us this information. Answer: The most difficult problem in implementing a good random number generator is in generating a good seed value for a starting […]

GZip Inflate/Deflate vs Compress/Uncompress clarification

In a nutshell, a GZIP file consists of a header followed by compressed data (using the “deflate” compression algorithm), followed by a trailer. The GZIP file format is specified here: GZIP file format. The Chilkat GZip component’s Compress* and Uncompress* methods read and write the GZIP file format. Data passed to an Uncompress* method should contain the header, compressed data, […]

HTML-to-XML Conversion: DropTagType clarification.

Question: I instantiated the HtmlToXml component correctly but the DropTagType method did not drop the HTML tags as I expected: Htmltoxml.DropTagType(“span font p I”) Htmltoxml.DropTagType(“<span> <font> <p> <I>”) Answer: Call DropTagType once for each type of tag to be dropped (i.e. discarded) from the output. The tag string is case-insensitive: Htmltoxml.DropTagType(“span”) Htmltoxml.DropTagType(“i”) Htmltoxml.DropTagType(“p”) Htmltoxml.DropTagType(“font”)

Mail not sent when SendEmail returns success?

Question: Looks to me like sendmail is returning true before the message has been sent but I’m sure you’ll tell me that there is no way this can happen… Answer: The SendEmail method returned true after the email was successfully handed over to the SMTP server. When the SMTP server decides to actually forward the email onward to its destination […]

Using X509 Certificate to Encrypt Data

Question: Do you have any examples of using the Chilkat Encryption component with X509 Digital Certificates to encrypt and decrypt data ? Answer: To use an X509 certificate, the CryptAlgorithm is set to “PKI” and you set the certificate by calling SetEncryptCert. The encryption algorithm may be controlled by using a Chilkat CSP object and calling SetCSP. Here’s a quick […]

Does Chilkat Crypt support 3DES? Yes.

Question: Does the Crypt2 Component support 3DES ?? Setting “CryptAlgorithm” to “3des” or “des” does not change the encoded output when the “EncryptStringENC” method is used. Answer: Yes. The CryptAlgorithm should be set to “DES” (case-insensitive). The KeyLength property determines if it is DES (56 or 64), 3DES (112 or 128) or 2-Key TDES (168 or 192). Each byte in […]