Zend\Crypt\PublicKey\Rsa\AbstractKey
Synopsis
class AbstractKey
{
- // constants
- const DEFAULT_KEY_SIZE = 2048;
- // members
- protected string $pemString;
- protected resource $opensslKeyResource;
- protected array $details;
- // methods
- public int getSize()
- public resource getOpensslKeyResource()
- public abstract string encrypt()
- public abstract string decrypt()
- public abstract string toString()
- public string __toString()
Hierarchy
Constants
Name | Value |
---|---|
DEFAULT_KEY_SIZE | 2048 |
Members
protected
- $details
—
array
Openssl details array - $opensslKeyResource
—
resource
Key Resource - $pemString
—
string
PEM formatted key
Methods
public
- __toString()
- decrypt() — Decrypt using this key
- encrypt() — Encrypt using this key
- getOpensslKeyResource() — Retrieve openssl key resource
- getSize() — Get key size in bits
- toString() — Get string representation of this key