lib/sym/crypt/extensions/instance_methods.rb in sym-crypt-1.1.1 vs lib/sym/crypt/extensions/instance_methods.rb in sym-crypt-1.2.0

- old
+ new

@@ -1,7 +1,7 @@ require 'sym/crypt' -require 'sym/crypt/data' +require 'sym/data' require 'sym/crypt/cipher_handler' require 'openssl' module Sym module Crypt module Extensions @@ -15,10 +15,10 @@ # Methods +#encr_password+ and +#decr_password+ provide a good # example of how this module can be extended to provide more uses # of various ciphers, by calling into the private +_encr+ and +_decr+ # methods.f module InstanceMethods - include Sym::Crypt::Data + include Sym::Data include Sym::Crypt::CipherHandler # Expects key to be a base64 encoded key def encr(data, key, iv = nil) raise Sym::Crypt::Errors::NoPrivateKeyFound unless key.present?