login about faq

The Java side of our project performs the encryption using essentially a set of bytes which could be called the "salt". The 42 salt bytes are put directly into the program as the "master password", rather than passing in a text password and some salt bytes which would be concatenated together in your class in some fashion to comprise the "master password." Would your C++ CkCrypt2 class be able to handle this for the decryption, and if so, how? Is it legal to assign no password with put_PbesPassword and just put in the 42 bytes into SetEncodedSalt? Also, is it legal to pass a 42 byte salt in the first place?

asked Dec 21 '12 at 17:19

dwm2012's gravatar image

dwm2012
1223


link

answered Dec 24 '12 at 12:27

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

I did see that code, but that code prompted my questions above. The example has a PBES password of "secret", and salt bytes of "C773218C7EC8EE99". Our use case would be that we have no password, but a long set of salt bytes. I wasn't sure if not specifying a password was a valid condition, whether passing a long set of salt bytes was a valid condition, and whether it would generate the desired result.

link

answered Dec 26 '12 at 09:09

dwm2012's gravatar image

dwm2012
1223

I think the answer is no. PBES1 is defined here: http://tools.ietf.org/html/rfc2898#section-6.1.2

According to the definition of the algorithm, the salt must be 8 bytes.

link

answered Dec 26 '12 at 21:45

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:

×64

Asked: Dec 21 '12 at 17:19

Seen: 2,568 times

Last updated: Dec 26 '12 at 21:45

powered by OSQA