Sha256: f2061220425d65fc267ac0dd2c526417e7c231adf03c47f469f3b28c1a234554

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

module PluginAWeek #:nodoc:
  module EncryptedStrings #:nodoc:
    # Represents an encryptor for strings.  Certain encryption algorithms
    # do not allow for strings to be decrypted.
    class Encryptor
      # Can this string be decrypted?
      def can_decrypt?
        true
      end
      
      # By default, decryption is not supported
      def decrypt(data)
        raise NotImplementedError, "Decryption is not supported using a(n) #{self.class.name}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
encrypted_strings-0.0.1 lib/encrypted_strings/encryptor.rb