Class: PgExport::Factories::CipherFactory
- Inherits:
-
Object
- Object
- PgExport::Factories::CipherFactory
- Defined in:
- lib/pg_export/factories/cipher_factory.rb
Instance Method Summary collapse
- #decryptor ⇒ Object
- #encryptor ⇒ Object
-
#initialize(encryption_algorithm:, encryption_key:) ⇒ CipherFactory
constructor
A new instance of CipherFactory.
Constructor Details
#initialize(encryption_algorithm:, encryption_key:) ⇒ CipherFactory
Returns a new instance of CipherFactory.
8 9 10 11 |
# File 'lib/pg_export/factories/cipher_factory.rb', line 8 def initialize(encryption_algorithm:, encryption_key:) @encryption_algorithm = encryption_algorithm @encryption_key = encryption_key end |
Instance Method Details
#decryptor ⇒ Object
17 18 19 |
# File 'lib/pg_export/factories/cipher_factory.rb', line 17 def decryptor build_cipher(:decrypt) end |
#encryptor ⇒ Object
13 14 15 |
# File 'lib/pg_export/factories/cipher_factory.rb', line 13 def encryptor build_cipher(:encrypt) end |