login about faq

I need to encrypt a NSString using a public key from a webserver certificate on iOS. Can i use Chilkat lib for this? How could i do this?

asked Jun 26 '14 at 16:20

hdoria's gravatar image

hdoria
1111


Probably, but it depends on what you want to do. Typically, if a digital certificate is involved the need is to produce PKCS7 encrypted output. If this is the case, then you would use Chilkat Crypt with the CryptAlgorithm property set to "pki". The Certificate is specified by calling SetEncryptCert (see http://www.chilkatsoft.com/refdoc/objcCkoCrypt2Ref.html ). The string would be encrypted by calling EncryptString or EncryptStringENC, depending on whether you want binary output or output encoded in printable string form (base64, hex, etc.)

link

answered Jun 27 '14 at 13:23

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×94
×47

Asked: Jun 26 '14 at 16:20

Seen: 1,942 times

Last updated: Jun 27 '14 at 13:23

powered by OSQA