Skip to content

Python implementation of a PKCS12 (RFC 7292) key derivation function.

Notifications You must be signed in to change notification settings

hselvarajan/pkcs12kdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A python implementation of the PKCS12 Key Derivation Function (KDF).

The PKCS12 KDF is deprecated and the use of a more modern Key Derivation Function like PBKDF2 is recommended. This library exists for compatibility with existing KDF schemes based on PKCS12.

Usage:

  • Get the password from the user, preferably using getpass()
  • Create an instance of the PKCS12KDF object, passing the following parameters:
    • password
    • salt
    • hash_algorithm (Any hash algorithm supported by hashlib)
    • Desired key length in bits
  • Call generate_key_and_iv on the PKCS12KDF instance, which will return a (key,iv) tuple

About

Python implementation of a PKCS12 (RFC 7292) key derivation function.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages