class MessageEncryptor
Ruby on Rails 3.1.12
Since v2.3.18MessageEncryptor is a simple way to encrypt values which get stored somewhere you don’t trust.
The cipher text and initialization vector are base64 encoded and returned to you.
This can be used in situations similar to the MessageVerifier, but where you don’t want users to be able to determine the value of the payload.
Inherits from
Namespace
Classes
Constants
Methods (defined here)
- # decrypt
- # decrypt_and_verify
- # encrypt
- # encrypt_and_sign
- self. new
Private methods
(2)
Implementation detail — not part of the public API.
- # new_cipher
- # verifier
Methods (inherited)
From Object (24)
- # acts_like?
- # app
- # blank?
- # controller
- # create_fixtures
- # duplicable?
- # helper
- # html_safe?
- # in?
- # index
- # instance_variable_names
- # new_session
- # options
- # presence
- # present?
- # reload!
- # show
- # test_homepage
- # to_param
- # to_query
- # try
- # unescape
- # with_options
- self. table_name_prefix