Module: Ankh
- Defined in:
- lib/ankh.rb,
lib/ankh/model.rb,
lib/ankh/question.rb,
lib/ankh/rails/legacy.rb,
lib/ankh/validations/human.rb
Defined Under Namespace
Modules: Legacy, Model, Validations
Classes: Question
Class Method Summary
collapse
Class Method Details
.encrypt(item_to_encrypt) ⇒ Object
22
23
24
|
# File 'lib/ankh.rb', line 22
def self.encrypt(item_to_encrypt)
Digest::SHA1.hexdigest("--#{salt}--#{item_to_encrypt}")
end
|
.salt ⇒ Object
18
19
20
|
# File 'lib/ankh.rb', line 18
def self.salt
configatron.ankh.salt ||= 'fqphweuyir8y34295yu234y5219pthfsdlhgfsaf'
end
|
.salt=(salt) ⇒ Object
14
15
16
|
# File 'lib/ankh.rb', line 14
def self.salt=(salt)
configatron.ankh.salt = salt
end
|