method
pkcs5_keyivgen
v1_9_2_180 -
Show latest stable
-
0 notes -
Class: Cipher
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (38)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6 (5)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
pkcs5_keyivgen(p1, p2 = v2, p3 = v3, p4 = v4)
public
Generates and sets the key/iv based on a password.
WARNING: This method is only PKCS5 v1.5 compliant when using RC2, RC4-40, or DES with MD5 or SHA1. Using anything else (like AES) will generate the key/iv using an OpenSSL specific method. Use a PKCS5 v2 key generation method instead.
Parameters
salt must be an 8 byte string if provided. iterations is a integer with a default of 2048. digest is a Digest object that defaults to ‘MD5’
A minimum of 1000 iterations is recommended.