$key
$key : resource
This class represents a public key for the asymmetric encryption engine.
Note: This class uses OpenSSL for strong encryption
__construct(string $key)
Used to create a public key from the given string.
string | $key | the public key serialized as a string |
the given key isn't a valid serialized key
the given key is invalid