An encryptor that won’t decrypt or encrypt. It will just return the passed values

Methods

Instance Public methods

binary?()

πŸ“ Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 20
      def binary?
        false
      end
πŸ”Ž See on GitHub

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

πŸ“ Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 12
      def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
        encrypted_text
      end
πŸ”Ž See on GitHub

encrypt(clean_text, key_provider: nil, cipher_options: {})

πŸ“ Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 8
      def encrypt(clean_text, key_provider: nil, cipher_options: {})
        clean_text
      end
πŸ”Ž See on GitHub

encrypted?(text)

πŸ“ Source code
# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 16
      def encrypted?(text)
        false
      end
πŸ”Ž See on GitHub