sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
ActiveSupport::MessageEncryptor#encrypt_and_sign
Encrypt and sign a message. We need to sign the message in order to avoid padding attacks. Reference: http://www.limited-entropy.com/padding-oracle-attacks.
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-encrypt_and_sign-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#encrypt_and_sign"
# 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-encrypt_and_sign-for-pr
hub pull-request
# Celebrate!