Class: SmartCampus::Sign::SHA1

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_campus/sign/sha1.rb

Class Method Summary collapse

Class Method Details

.sign(sort_str) ⇒ Object



6
7
8
# File 'lib/smart_campus/sign/sha1.rb', line 6

def self.sign(sort_str)
  Digest::SHA1.hexdigest(sort_str)
end

.verify?(sign, sort_str) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/smart_campus/sign/sha1.rb', line 10

def self.verify?(sign, sort_str)

end