login about faq

I'd like to implement a SecretKey and Salt. What I'd like to achieve are two things.

  1. Be able to use a SecretKet to add 1 layer of security. I'm aware it only applies to a few algorithms. And to decrypt, the SecretKey needs to be known.
  2. Salt value so each time you encrypt, a different value is given on output.

Any example would be great. Reference docs don't say much.

asked Feb 18 '13 at 12:38

Sunsfallen's gravatar image


In my opinion, your solution is to use AES encryption (CBC mode) w/ an IV (initialization vector) that is different each time. Think of the IV as the "salt". There are examples at http://www.example-code.com/ for AES encryption.


answered Feb 18 '13 at 13:41

chilkat's gravatar image

chilkat ♦♦

So, crypt.Salt and crypt.SecretKey can't be used for those purposes?

(Feb 18 '13 at 14:49) Sunsfallen
Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Feb 18 '13 at 12:38

Seen: 3,346 times

Last updated: Feb 18 '13 at 14:49

powered by OSQA