login about faq

Hi there, what if below happen, what is the exact encryption key that Chilkat lib is going to use?

[crypt SetEncodedKey: @"/s=" encoding: @"hex"];

Thanks.

asked Sep 09 '14 at 06:40

konkarhou's gravatar image

konkarhou
11

edited Jan 11 '15 at 05:02


The format of the string passed in the first argument must match what is specified in the 2nd argument. You indicated "hex", but passed a base64 string. You cannot expect a well-defined result in this case..

link

answered Sep 09 '14 at 10:02

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

This 'wrong' setting has been in use for a while, and it's a big impact to change it.

I am able to encrypt and decrypt successfully by using Chilkat lib on both mobile(iOS) and server(java)

Now I would like to encrypt a data using the iOS CommonCrypto and decrypt it at the server. Assume the base64 string is the AES key, may I know what is the encryption key that Chilkat lib will derive based on the above setting?

There is no error thrown and it's able to decrypt at the server, so I assume the Chilkat lib has a way to derive the encryption key based on the above setting.

Thanks.

(Sep 09 '14 at 10:28) konkarhou

To find out the exact value of the secret key after setting it, you can get the contents of the SecretKey property.

link

answered Sep 11 '14 at 20:51

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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:

×22

Asked: Sep 09 '14 at 06:40

Seen: 1,118 times

Last updated: Jan 11 '15 at 05:02

powered by OSQA