Question:
Dear All,
I am evaluating the Chilkat library for an Android Application Development. In this regard, I came across some example for using CkMime for encryption of Emails. Here is the snippet:
CkCert cert = new CkCert();
success = cert.LoadFromFile("myCert.cer");
if (success == false) {
outStr += cert.lastErrorText() + "\n";
tv.setText(outStr);
setContentView(tv);
return;
}
// Encrypt the MIME:
success = mime.Encrypt(cert);
if (success == false) {
outStr += mime.lastErrorText() + "\n";
tv.setText(outStr);
setContentView(tv);
return;
}
Now my question is: what is the default symmetric encryption algorithm used by Encrypt and EncryptN methods?
Thanks.
All Chilkat classes that do PCKS7 encryption have two standard properties:
(string) Pkcs7CryptAlg
(int) Pkcs7KeyLength
Classes having these properties include CkCrypt2, CkMime, and CkEmail. The default values are "RC2" / 128. Your application can set these properties to control the underlying symmetric encrytion algorithm. See the reference documentation here for the list of possible values: http://www.chilkatsoft.com/refdoc/vcCkMimeRef.html