class Underlock::Base
Public Class Methods
decrypt(encrypted_entity)
click to toggle source
# File lib/underlock/base.rb, line 19 def decrypt(encrypted_entity) encrypted_entity.decrypt end
encrypt(unencrypted_value)
click to toggle source
# File lib/underlock/base.rb, line 12 def encrypt(unencrypted_value) case unencrypted_value when File, Pathname then FileEncryptor.new.encrypt(unencrypted_value) when String then Encryptor.new.encrypt(unencrypted_value) end end