Use PBKDF2 to derive encryption key.