keyFromString
Converts a base64-encoded string representation of a secret key into a SecretKey
object. The input string must represent a valid AES-256 key (32 bytes long after decoding).
Return
A SecretKey
object created from the input string.
Parameters
keyString
The base64-encoded string representation of the secret key.
Throws
if the decoded key length is not the required size.