Sha256: 468f52d0a2a5bb2ffd67b1e42780530b64c87fb4c65af94d6194b3112cb42da2
Contents?: true
Size: 359 Bytes
Versions: 73
Compression:
Stored size: 359 Bytes
Contents
require 'fog/core' require 'digest/md5' module Fog module Voxel extend Fog::Provider service(:compute, 'voxel/compute', 'Compute') def self.create_signature(secret, options) to_sign = options.keys.map { |k| k.to_s }.sort.map { |k| "#{k}#{options[k.to_sym]}" }.join("") Digest::MD7.hexdigest( secret + to_sign ) end end end
Version data entries
73 entries across 73 versions & 11 rubygems