Hi @James Foy ,Welcome to Microsoft Q&A,
Regarding encrypted strings, a low-cost way is to use the AES symmetric encryption algorithm, and then use a secure method to generate a key.
You could use a cryptographically secure pseudo-random number generator to generate a random key. Keys should be strong enough to resist cracking and brute force attacks.
Regardless of the encryption method you use, what matters is how you plan to store the keys.
About the AES key. You can generate a key before deployment and manually enter the key when deploying.
It is also possible if you choose to accept the key from the server.
If you deploy directly on the machine, you can also use DPAPI encryption, but the encryption key is computer-level.
KEY is not required at runtime.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.