Class: Sorcery::CryptoProviders::SHA256

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/sorcery/crypto_providers/sha256.rb

Overview

Sha256

Uses the Sha256 hash algorithm to encrypt passwords.

Class Method Summary (collapse)

Methods included from Common

included

Class Method Details

+ (Object) secure_digest(digest)



30
31
32
# File 'lib/sorcery/crypto_providers/sha256.rb', line 30

def secure_digest(digest)
  Digest::SHA256.hexdigest(digest)
end