Method: Escher::Auth#create_algo
- Defined in:
- lib/escher/auth.rb
#create_algo ⇒ Object
| 258 259 260 261 262 263 264 265 266 267 | # File 'lib/escher/auth.rb', line 258 def create_algo case @hash_algo when 'SHA256' @algo = OpenSSL::Digest::SHA256.new when 'SHA512' @algo = OpenSSL::Digest::SHA512.new else raise EscherError, 'Unidentified hash algorithm' end end |