Sha256: 267982132215e699daaffac754654c6ed2ec5b86687cfba3846d4053a4667e6c
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
module PluginAWeek #:nodoc: module EncryptedStrings # Represents an encryptor for strings. Certain encryption algorithms # do not allow for strings to be decrypted. class Encryptor # Can this string be decrypted? Default is true. def can_decrypt? true end # Attempts to decrypt the given data using the current configuration. By # default, decryption is not implemented. def decrypt(data) raise NotImplementedError, "Decryption is not supported using a(n) #{self.class.name}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
encrypted_strings-0.0.4 | lib/encrypted_strings/encryptor.rb |
encrypted_strings-0.0.3 | lib/encrypted_strings/encryptor.rb |
encrypted_strings-0.0.2 | lib/encrypted_strings/encryptor.rb |