HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/activesupport-6.1.4.1/ri/ActiveSupport/MessageEncryptor/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI")ActiveSupport::MessageEncryptor::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[
I"MInitialize a new MessageEncryptor. +secret+ must be at least as long as ;TI"Lthe cipher key size. For the default 'aes-256-gcm' cipher, this is 256 ;TI"Obits. If you are using a user-entered secret, you can generate a suitable ;TI"Hkey by using <tt>ActiveSupport::KeyGenerator</tt> or a similar key ;TI"derivation function.;To:RDoc::Markup::BlankLineo;
;	[I"TFirst additional parameter is used as the signature key for +MessageVerifier+. ;TI">This allows you to specify keys to encrypt and sign data.;T@o:RDoc::Markup::Verbatim;	[I"GActiveSupport::MessageEncryptor.new('secret', 'signature_secret')
;T:@format0o;
;	[I"
Options:;To:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;	[o;
;	[I"I<tt>:cipher</tt>     - Cipher to use. Can be any cipher returned by ;TI"@<tt>OpenSSL::Cipher.ciphers</tt>. Default is 'aes-256-gcm'.;To;;0;	[o;
;	[I"H<tt>:digest</tt> - String of digest to use for signing. Default is ;TI"B+SHA1+. Ignored when using an AEAD cipher like 'aes-256-gcm'.;To;;0;	[o;
;	[I"K<tt>:serializer</tt> - Object serializer to use. Default is +Marshal+.;T:
@fileI",lib/active_support/message_encryptor.rb;T:0@omit_headings_from_table_of_contents_below000[I"K(secret, sign_secret = nil, cipher: nil, digest: nil, serializer: nil);T@0FI"MessageEncryptor;TcRDoc::NormalClass00