Class: RightAws::AwsUtils

Inherits:
Object
  • Object
show all
Defined in:
lib/awsbase/right_awsbase.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.sign(aws_secret_access_key, auth_string) ⇒ Object



28
29
30
# File 'lib/awsbase/right_awsbase.rb', line 28

def self.sign(aws_secret_access_key, auth_string)
  Base64.encode64(OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new("sha1"), aws_secret_access_key, auth_string)).strip
end