I've been doing a bit of searching for a guide on environment variables and how to use them but I'm only finding old documentation and most of this documentation only goes into how to set the environment variable anyways. I'm writing an app which uses MailKit to send transaction emails to users who register an account but in order to do this I have to authenticate the credentials of the account I'm sending the emails from and this happens in my code. My friend had suggested using environment variables as to hide these credentials from anyone who looks at the code. I'm a fairly new developer and any help or guidance would be appreciated. Environment variables may not even be my answer but I know that I want to hide these details. Thanks in advance!
↧