Getting the answer will require a little information about the correct encryption. You may already know this, but most people do it wrong, so I cover it. (If you encrypt the password and do not encode at least HMAC, two salts and IV, you are doing it wrong.)
First, you must use HMAC (see CCHmac()) each time encryption in non-authentication mode (for example, AES-CBC). Otherwise, attackers can modify your encrypted text in ways that force it to decrypt into another message. See modaes for an example of this attack. HMAC is a cryptographically secure key based hash.
-, , KDF . PBKDF2. .
, , : HMAC.
, , , , HMAC , . RNCryptor.
: , , .
, , HMAC . , . , aescrypt. , "" , , PBKDF2, HMAC, . - , .