Passwords and keys are always encrypted in the database. For extra safety, or to manage settings from code, put them in wp-config.php instead (above the line "That's all, stop editing!"). Fields set this way are locked in the settings screen.
define( 'SGSMTP_MAILER', 'smtp' );
define( 'SGSMTP_HOST', 'smtp.yourdomain.com' );
define( 'SGSMTP_PORT', 587 );
define( 'SGSMTP_ENCRYPTION', 'tls' );
define( 'SGSMTP_USERNAME', 'billing@yourdomain.com' );
define( 'SGSMTP_PASSWORD', 'your-password' );
define( 'SGSMTP_FROM_EMAIL', 'billing@yourdomain.com' );
define( 'SGSMTP_FROM_NAME', 'Your Business' );
Any primary connection field can be set as SGSMTP_ plus the field name in capitals, for example SGSMTP_API_KEY, SGSMTP_DOMAIN, SGSMTP_REGION, SGSMTP_ACCESS_KEY, SGSMTP_SECRET_KEY, SGSMTP_CLIENT_ID, SGSMTP_CLIENT_SECRET.
SGSMTP_ENCRYPTION_KEY sets your own encryption key. Set it before saving secrets; if you add or change it later, re-enter your passwords.
