跳至内容 跳至搜索

一种不会解密或加密的加密器。它只会返回传入的值

方法
B
D
E

实例公共方法

binary?()

# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 20
def binary?
  false
end

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

# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 12
def decrypt(encrypted_text, key_provider: nil, cipher_options: {})
  encrypted_text
end

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

# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 8
def encrypt(clean_text, key_provider: nil, cipher_options: {})
  clean_text
end

encrypted?(text)

# File activerecord/lib/active_record/encryption/null_encryptor.rb, line 16
def encrypted?(text)
  false
end