sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
ActiveSupport::MessageEncryptor#initialize
Initialize a new MessageEncryptor. +secret+ must be at least as long as the cipher key size. For the default 'aes-256-cbc' cipher, this is 256 bits. If you are using a user-entered secret, you can generate a suitable key with <tt>OpenSSL::Digest::SHA256.new(user_secret).digest</tt> or similar. Options: * <tt>:cipher</tt> - Cipher to use. Can be any cipher returned by <tt>OpenSSL::Cipher.ciphers</tt>. Default is 'aes-256-cbc'. * <tt>:serializer</tt> - Object serializer to use. Default is +Marshal+.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/message_encryptor.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActiveSupport--MessageEncryptor-initialize-for-pr
# Commit to gitgit add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/message_encryptor.rbgit commit -m "better docs for ActiveSupport::MessageEncryptor#initialize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActiveSupport--MessageEncryptor-initialize-for-pr
hub pull-request
# Celebrate!