keyToString
Converts the provided secret key into its Base64-encoded string representation. This method is useful for securely exporting or storing the key as a string.
Return
A Base64-encoded string representation of the secret key.
Parameters
key
The secret key to be converted. Must be a valid and non-null instance of SecretKey
.