spec/support/encryptors.rb in crypt_keeper-0.13.1 vs spec/support/encryptors.rb in crypt_keeper-0.14.0.pre

- old
+ new

@@ -1,19 +1,31 @@ # A fake class that does no encryption module CryptKeeper module Provider class FakeEncryptor + include CryptKeeper::Helper::Serializer + def initialize(*args) end + + def encrypt(value) + value + end + + def decrypt(value) + value + end end end end # This class embeds the passphrase in the beginning of the string # and then reverses the 'plaintext' module CryptKeeper module Provider class Encryptor + include CryptKeeper::Helper::Serializer + def initialize(options = {}) @passphrase = options[:passphrase] end def encrypt(data)