DEV Community

Discussion on: Best practices to generate and store API keys using Node.js?

nagarjun profile image
Nagarjun Palavalli Author • Edited on

KMS isn't meant just for generating unique API keys. You are better off using UUID and the Crypto library to do that. They are both battle tested to create unique keys. You would use KMS as a way to encrypt/decrypt your keys before storing them in your database as you should not store keys and secrets in plain text in the database.

Thread Thread
shaileshkanzariya profile image
sk

Got it, thanks.