login about faq

lately im creating an AES encryption calculator based on chilkatcrypt code which has an hex key input and output. i thought there was something wrong with my code which never had a same output with another AEs encryption in the internet.

when i check the sample code from chilkat, i realized that the key input(data) which recognized as a string will be converted by chilkatcrypt to ascii code, resulting 1byte data per word (example : A=65, B=66, etc) and it will be recognized by chilkatsource as a hex key.

` Dim encStr As String encStr = crypt.EncryptStringENC("The quick brown fox jumps over the lazy dog.") MsgBox encStr`

then i know what went wrong but i dont know how to change the code from chilkat source with another reserved input method. is there anyone can help me solve this problem?

i know im not good when describing the problem, i hope someone will understand and help me.

great thanks

asked Aug 05 '14 at 23:43

febfeb's gravatar image

febfeb
614


Use the crypt.SetEncodedKey method to specify a key in hex.

link

answered Aug 06 '14 at 08:55

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

from the code you gave, will the code like this?

Dim encStr As String

encStr = crypt.EncryptBytesENC("000102030405060708090A0B0C0D0E0F")

crypt.SetEncodedKey encStr,"hex"

MsgBox encStr

im thinking about this method lately because the iv declared like this. really need more of explaination about the methods, cuz it will be so usefull.

thanks in advance, im gonna try wether this is working to my calculator.

link

answered Aug 06 '14 at 22:47

febfeb's gravatar image

febfeb
614

edited Aug 29 '14 at 04:11

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:

×64
×33
×2
×2
×2

Asked: Aug 05 '14 at 23:43

Seen: 1,276 times

Last updated: Aug 29 '14 at 04:11

powered by OSQA