CryptoManager
class CryptoManager extends AdapterManager
Crypto manager.
Traits
Configurable trait.
Properties
protected string | $default | Name of the default connection. | from ConfigurableTrait |
protected array | $configurations | Configurations. | from ConfigurableTrait |
protected Container | $container | Container. | from AdapterManager |
protected array | $extensions | Extensions. | from AdapterManager |
protected array | $instances | Connections. | from AdapterManager |
Methods
mixed
instantiate(string $configuration)
Returns a crypto instance.
instance()
No description
mixed
__call(string $name, array $arguments)
Magic shortcut to the default configuration.
from AdapterManager
opensslFactory(array $configuration)
OpenSSL encrypter factory.
string
encrypt(string $string)
No description
false|string
decrypt(string $string)
No description
Details
in ConfigurableTrait at line 35
__construct(string $default, array $configurations)
Constructor.
in ConfigurableTrait at line 48
addConfiguration(string $name, array $configuration)
Adds a configuration.
in ConfigurableTrait at line 59
removeConfiguration(string $name)
Removes a configuration.
It will also remove any active connection linked to the configuration.
in AdapterManager at line 68
extend(string $name, Closure|string $adapter)
Adds extension.
in AdapterManager at line 80
protected mixed
factory(string $adapterName, array $configuration = [])
Factory.
at line 44
protected mixed
instantiate(string $configuration)
Returns a crypto instance.
at line 25
EncrypterInterface
instance()
in AdapterManager at line 134
mixed
__call(string $name, array $arguments)
Magic shortcut to the default configuration.
at line 33
protected OpenSSL
opensslFactory(array $configuration)
OpenSSL encrypter factory.