Class: ParameterSubstitution::Formatters::Sha256
- Inherits:
-
Base
- Object
- Base
- ParameterSubstitution::Formatters::Sha256
show all
- Defined in:
- lib/parameter_substitution/formatters/sha256.rb
Class Method Summary
collapse
Methods inherited from Base
encoding, has_parameters?, key, parse_duration
Class Method Details
.description ⇒ Object
4
5
6
|
# File 'lib/parameter_substitution/formatters/sha256.rb', line 4
def self.description
"Generates a sha256 hash of the value."
end
|
8
9
10
|
# File 'lib/parameter_substitution/formatters/sha256.rb', line 8
def self.format(value)
Digest::SHA256.hexdigest(value.to_s)
end
|