module Pwss::Cipher
Public Class Methods
decrypt(string, password)
click to toggle source
# File lib/pwss/cipher.rb, line 13 def self.decrypt string, password begin Encryptor.decrypt(:value => string, :key => password) rescue Exception => e puts "Unable to decrypt. Exiting" exit 1 end end
encrypt(string, password)
click to toggle source
# File lib/pwss/cipher.rb, line 9 def self.encrypt string, password Encryptor.encrypt(:value => string, :key => password) end