Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\Driver\ClientEncryption::createDataKeyMongoDB\Driver\ClientEncryption::deleteKey>
^MongoDB\Driver\ClientEncryptionLast updated: Mon, 26 Oct 2026

MongoDB\Driver\ClientEncryption::decrypt

(mongodb >=1.7.0)

MongoDB\Driver\ClientEncryption::decrypt — Decrypt a value

Description

final public function MongoDB\Driver\ClientEncryption::decrypt(MongoDB\BSON\Binary $value): mixed

Decrypts the value.

Parameters

value

A MongoDB\BSON\Binary instance with subtype 6 containing the encrypted value.

Return Values

Returns the decrypted value as it was passed to MongoDB\Driver\ClientEncryption::encrypt().

Errors/Exceptions

See Also


<MongoDB\Driver\ClientEncryption::createDataKeyMongoDB\Driver\ClientEncryption::deleteKey>
^MongoDB\Driver\ClientEncryptionLast updated: Mon, 26 Oct 2026