Module: Platform::Helper

Defined in:
lib/platform/helper.rb

Class Method Summary collapse

Class Method Details

.generate_key(size = 32) ⇒ Object



29
30
31
# File 'lib/platform/helper.rb', line 29

def self.generate_key(size=32)
  Base64.encode64(OpenSSL::Random.random_bytes(size)).gsub(/\W/, '')
end