Skip to content

Instantly share code, notes, and snippets.

@geetfun
Created January 15, 2017 06:54
Show Gist options
  • Save geetfun/8d196fd277e8bd4749dda21961f2aa02 to your computer and use it in GitHub Desktop.
Save geetfun/8d196fd277e8bd4749dda21961f2aa02 to your computer and use it in GitHub Desktop.
Uploadcare Signature generation
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