MongoDB\Driver\ClientEncryption::decrypt
(mongodb >=1.7.0)
MongoDB\Driver\ClientEncryption::decrypt — Decrypt a value
Beschreibung
Decrypts the value.
Parameter-Liste
-
value
-
A MongoDB\BSON\Binary instance with subtype 6 containing the encrypted value.
Rückgabewerte
Returns the decrypted value as it was passed to MongoDB\Driver\ClientEncryption::encrypt().
Fehler/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
- Throws MongoDB\Driver\Exception\EncryptionException if an error occurs while decrypting the value
Siehe auch
- MongoDB\Driver\ClientEncryption::encrypt() - Encrypt a value