Skip to content

Instantly share code, notes, and snippets.

@sebabelmar
Created July 18, 2016 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebabelmar/40bb2b3354c81544dda251026f40e8f6 to your computer and use it in GitHub Desktop.
Save sebabelmar/40bb2b3354c81544dda251026f40e8f6 to your computer and use it in GitHub Desktop.
# SYSTEM_SECRET should be equal to THIS_IS_THE_SECRET
THIS_IS_THE_SECRET = 'MY LITTLE SECRET'
# <YOUR NECESSARY CODE>
######### DRIVER CODE DO NOT CHANGE ####################
system_secret = Configuration::SYSTEM_SECRET
# Make sure that this statement is true
p encrypt_secret(system_secret) == my_system.secret.reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment