Sha256: c97a01bc774990109be2eb5bc79f1fc4159e57d6480f94cc2658a1ce45ad78e6

Contents?: true

Size: 304 Bytes

Versions: 85

Compression:

Stored size: 304 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module Encryption
    # An encryptor that can encrypt data but can't decrypt it.
    class EncryptingOnlyEncryptor < Encryptor
      def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
        encrypted_text
      end
    end
  end
end

Version data entries

85 entries across 82 versions & 9 rubygems

Version Path
activerecord-8.0.2 lib/active_record/encryption/encrypting_only_encryptor.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.7/lib/active_record/encryption/encrypting_only_encryptor.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-8.0.1 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-8.0.0.1 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.2.2.1 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.1.5.1 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.0.8.7 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-8.0.0 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.2.2 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.1.5 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-8.0.0.rc2 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.2.1.2 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.1.4.2 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.0.8.6 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-8.0.0.rc1 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.2.1.1 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.1.4.1 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-7.0.8.5 lib/active_record/encryption/encrypting_only_encryptor.rb
activerecord-8.0.0.beta1 lib/active_record/encryption/encrypting_only_encryptor.rb