Created
September 5, 2017 05:49
-
-
Save SylarRuby/f681ceba96009bf9bcb816a48cf2afc5 to your computer and use it in GitHub Desktop.
encrypt and decrypt in Rails 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated from your Rails Console | |
# salt = SecureRandom.random_bytes(64) | |
# key = ActiveSupport::KeyGenerator.new('password').generate_key(salt) | |
SALT: "\xF9\x9B:\xB6\x0F\xAE\xD9\t(\xA2\xB9\nC&\xF6|\xDC\b\b\xA3\x96\x83\xF4\xDE,\xE1\x86{\xFE\e\x16\x8B'\x1DR\v\x10\x11?v\xE4\xB1A\xEEG^X\x8B\xF3\xCE\x9AQ\xCDyJ\xEC\xF4\x01\xB1\xBD\x9CU\xE2\xAE" | |
KEY: "x\xFF=o\xF3\x90p\xA6)\x13p\x8B\x9A\xB7tU\xDF\xC2\xDF2=s\xA4[\x80\xCA\xBF\x1A|\x0E\xEEq\xE0\xFC\xBDq\x85i\xC5\xE1 \xE5\xE5+Nm;\xAA\x99\xFF9\x13\xBFdh\x97\xBC\x942\xBF\x10\xF3\xAC\xAE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment