Class: Zetto::Services::Encryption::PasswordHashing
- Inherits:
-
Object
- Object
- Zetto::Services::Encryption::PasswordHashing
- Includes:
- Modules::Crypto
- Defined in:
- lib/zetto/services/encryption/password_hashing.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(password) ⇒ PasswordHashing
constructor
A new instance of PasswordHashing.
Constructor Details
#initialize(password) ⇒ PasswordHashing
Returns a new instance of PasswordHashing.
6 7 8 |
# File 'lib/zetto/services/encryption/password_hashing.rb', line 6 def initialize(password) @password = password end |
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 |
# File 'lib/zetto/services/encryption/password_hashing.rb', line 10 def execute generate_hashing(Zetto::Config::Params.user_class_password_crypto, @password) rescue Exception => e Zetto::Services::Info. I18n.t('exseptions.unknown_error', argument: 'Zetto::Services::Encryption::PasswordHashing', current_method: __method__), e nil end |