module Nounce
Definitions
def self.generate_key
Valid for the SEC_WEBSOCKET_KEY
header.
Implementation
def self.generate_key
SecureRandom.base64(16)
end
def self.accept_digest(key)
Valid for the SEC_WEBSOCKET_ACCEPT
header.
Implementation
def self.accept_digest(key)
Digest::SHA1.base64digest(key + GUID)
end