lib/mongo/client_encryption.rb
# Decrypts a value that has already been encrypted
#
# @param [ String ] value The value to decrypt
#
# @return [ String|Numeric ] The decrypted value
#
# This method is not currently unit tested.
# Find tests in spec/integration/explicit_encryption_spec.rb
Decrypts a value that has already been encrypted
Decrypts a value that has already been encrypted
def decrypt(value)
      result = Crypt::ExplicitDecryptionContext
                .new(@crypt_handle.ref, @encryption_io, value)
                .run_state_machine
      Hash.from_bson(BSON::ByteBuffer.new(result))['v']
    end
def decrypt ( value ) result = Crypt :: ExplicitDecryptionContext . new ( @crypt_handle . ref , @encryption_io , value ) . run_state_machine Hash . from_bson ( BSON :: ByteBuffer . new ( result ) ) [ 'v' ] end
Decrypts a value that has already been encrypted
Decrypts a value that has already been encrypted
The decrypted value This method is not currently unit tested. Find tests in spec/integration/explicit_encryption_spec.rb
The decrypted value This method is not currently unit tested . Find tests in spec / integration / explicit_encryption_spec . rb
 String|Numeric 
value
value The value to decrypt
value The value to decrypt