MongoDB\Driver\ClientEncryption::decrypt

Decrypt a value

説明

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

Decrypts the value.

パラメータ

value

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

戻り値

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

エラー / 例外

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
  • Throws MongoDB\Driver\Exception\EncryptionException if an error occurs while decrypting the value

参考

  • MongoDB\Driver\ClientEncryption::encrypt