Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the ASN.1 OID associated to bcrypt (the key derivation scheme)?

For instance, PBKDF2 has 1.2.840.113549.1.5.12 and it is therefore possible to store a private key in a PKCS#8 structure, encrypted with a password. Is that possible with bcrypt?

share|improve this question
up vote 3 down vote accepted

According to bcrypt has no official OID. You could register a private enterprise number with IANA and assign your own OID for your purpose. But that's going to make interaction with 3rd party application more complicated.

Or you could use PBKDF2 instead of bcrypt. PBKDF2 is a public-key cryptography standards. Libraries such as OpenSSL implement PKCS #5 and therefore provide HMAC-based PBKDF2. The algorithm provides about the same amount of security as bcrypt.

share|improve this answer
OpenSS $\mapsto$ OpenSSL $\:$ ? $\;\;\;$ – Ricky Demer Sep 1 '13 at 2:23
Yes, OpenSSL. Thanks for the hint. I have fixed my typo. – Tiran Sep 2 '13 at 20:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.