ocheron / cryptostore

Serialization of cryptographic data types
Other
10 stars 9 forks source link

Creating a password-protected p12 file #4

Closed eyeinsky closed 3 years ago

eyeinsky commented 3 years ago

Hi! I was skimming on how to save a password-protected P12 file and have the following question: the writeP12FileToMemory takes a password as one of its arguments, and so does encrypted -- do the passwords need to be the same (because the container is decrypted and then re-encrypted on creating the byte string), or will the container have two passwords is the end (and I should skip one of these to get just one)?

ocheron commented 3 years ago

Usually passwords given to both functions will be the same. Not all software can handle integrity password and encryption password to be different.

eyeinsky commented 3 years ago

Thank you for clearing that up!