Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

encryption and decryption in rails

crypt = ActiveSupport::MessageEncryptor.new(Rails.application.secrets.secret_key_base[0..31])
encrypted_data = crypt.encrypt_and_sign('my confidental data')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #encryption #decryption #rails
ADD COMMENT
Topic
Name
7+1 =