Sha256: f189124fce0d91589b5a57a49c1fab5acaa5be0a9634053fd93ff4dd707ef01a

Contents?: true

Size: 464 Bytes

Versions: 61

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module Encryption
    # An encryptor that won't decrypt or encrypt. It will just return the passed
    # values
    class NullEncryptor
      def encrypt(clean_text, key_provider: nil, cipher_options: {})
        clean_text
      end

      def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
        encrypted_text
      end

      def encrypted?(text)
        false
      end
    end
  end
end

Version data entries

61 entries across 58 versions & 8 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.7/lib/active_record/encryption/null_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/null_encryptor.rb
activerecord-7.1.5.1 lib/active_record/encryption/null_encryptor.rb
activerecord-7.0.8.7 lib/active_record/encryption/null_encryptor.rb
activerecord-7.1.5 lib/active_record/encryption/null_encryptor.rb
activerecord-7.1.4.2 lib/active_record/encryption/null_encryptor.rb
activerecord-7.0.8.6 lib/active_record/encryption/null_encryptor.rb
activerecord-7.1.4.1 lib/active_record/encryption/null_encryptor.rb
activerecord-7.0.8.5 lib/active_record/encryption/null_encryptor.rb
activerecord-7.1.4 lib/active_record/encryption/null_encryptor.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/active_record/encryption/null_encryptor.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/encryption/null_encryptor.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/encryption/null_encryptor.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/encryption/null_encryptor.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/encryption/null_encryptor.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.3.4/lib/active_record/encryption/null_encryptor.rb
activerecord-7.1.3.4 lib/active_record/encryption/null_encryptor.rb
activerecord-7.0.8.4 lib/active_record/encryption/null_encryptor.rb
activerecord-7.1.3.2 lib/active_record/encryption/null_encryptor.rb
activerecord-7.1.3.1 lib/active_record/encryption/null_encryptor.rb