Created
January 15, 2017 06:54
-
-
Save geetfun/8d196fd277e8bd4749dda21961f2aa02 to your computer and use it in GitHub Desktop.
Uploadcare Signature generation
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
secret = ENV['UPLOADCARE_SECRET_KEY'] | |
expiry = (DateTime.now + 30.minutes).to_i | |
@uploadcare_secure_signature = Digest::MD5.hexdigest("#{secret}#{expiry}") | |
@uploadcare_expiry = expiry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment