Sha256: 61f65ef4e1a4e892fbb16729b6ae87b53bc82228a9f69ca24b0bf2b999511c02

Contents?: true

Size: 250 Bytes

Versions: 3

Compression:

Stored size: 250 Bytes

Contents

module ExceptionNotificationLarkNotifier
  class Signer
    def self.generate(timestamp, secret)
      string = "#{timestamp}\n#{secret}"
      Base64.strict_encode64(OpenSSL::HMAC.digest(OpenSSL::Digest.new("sha256"), string, ""))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exception_notification-lark-notifier-1.0.2 lib/exception_notification-lark-notifier/signer.rb
exception_notification-lark-notifier-1.0.1 lib/exception_notification-lark-notifier/signer.rb
exception_notification-lark-notifier-1.0.0 lib/exception_notification-lark-notifier/signer.rb