Module: Ankh
- Defined in:
- lib/ankh.rb,
lib/ankh/model.rb,
lib/ankh/railtie.rb,
lib/ankh/version.rb,
lib/ankh/question.rb,
lib/ankh/validations/human_validator.rb
Defined Under Namespace
Modules: Model, Validations
Classes: Question, Railtie
Constant Summary
collapse
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.encrypt(item_to_encrypt) ⇒ Object
20
21
22
|
# File 'lib/ankh.rb', line 20
def self.encrypt(item_to_encrypt)
Digest::SHA1.hexdigest("--#{salt}--#{item_to_encrypt}")
end
|
.salt ⇒ Object
16
17
18
|
# File 'lib/ankh.rb', line 16
def self.salt
configatron.ankh.salt ||= 'fqphweuyir8y34295yu234y5219pthfsdlhgfsaf'
end
|
.salt=(salt) ⇒ Object
12
13
14
|
# File 'lib/ankh.rb', line 12
def self.salt=(salt)
configatron.ankh.salt = salt
end
|