Module: DineroMail::Security
- Included in:
- Operations
- Defined in:
- lib/dinero_mail/security.rb
Instance Method Summary collapse
Instance Method Details
#encrypt_with(method, string) ⇒ Object
5 6 7 |
# File 'lib/dinero_mail/security.rb', line 5 def encrypt_with(method, string) send(method.to_sym, string) end |
#md5(string) ⇒ Object
9 10 11 |
# File 'lib/dinero_mail/security.rb', line 9 def md5(string) Digest::MD5.hexdigest(string) end |