class Sekrat::Crypter::Passthrough

A crypter that doesn't actually do any crypting

Public Instance Methods

decrypt(key, data) click to toggle source

Given a key and some data, use that key to decrypt the data. @param key [String] the encryption key to use @param data [String] the data to decrypt @return [String] the decrypted data

# File lib/sekrat/crypter/passthrough.rb, line 22
def decrypt(key, data)
  data
end
encrypt(key, data) click to toggle source

Given a key and some data, use that key to encrypt the data. @param key [String] the encryption key to use @param data [String] the data to encrypt @return [String] the original data

# File lib/sekrat/crypter/passthrough.rb, line 14
def encrypt(key, data)
  data
end