* @brief Standard PBKDF2-SHA256 derivation against a known salt and iteration count. */
| 61 | * @brief Standard PBKDF2-SHA256 derivation against a known salt and iteration count. |
| 62 | */ |
| 63 | static QByteArray derivePbkdf2(const QByteArray& password, const QByteArray& salt, int iterations) |
| 64 | { |
| 65 | return QPasswordDigestor::deriveKeyPbkdf2( |
| 66 | QCryptographicHash::Sha256, password, salt, iterations, kKeyLen); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * @brief Hashes @p plain with PBKDF2-SHA256 and returns a PHC-style `pbkdf2-sha256$iter$salt$hash`. |
no outgoing calls
no test coverage detected