content_image/696999.jpg content_image/697001.jpg
<img src='content_image/696999.jpg'>

<img src='content_image/697001.jpg'>

The SECRET  key type, available as of MySQL 8.0.19, is intended for general-purpose storage of sensitive data using the MySQL keyring, and is supported by all keyring components and most keyring plugins. The keyring encrypts and decrypts SECRET  data as a byte stream upon storage and retrieval. 

## 6.4.4.13 Migrating Keys Between Keyring Keystores 

Example keyring operations involving the SECRET  key type: 

SELECT keyring_key_generate(’MySecret1’, ’SECRET’, 20); SELECT keyring_key_remove(’MySecret1’); SELECT keyring_key_store(’MySecret2’, ’SECRET’, ’MySecretData’); SELECT keyring_key_fetch(’MySecret2’); SELECT keyring_key_length_fetch(’MySecret2’); SELECT keyring_key_type_fetch(’MySecret2’); SELECT keyring_key_remove(’MySecret2’); 

