educative.io

Why do we even need KGS?

Why can’t we use a random number using RNG to salt the request? Or, we can even add the timestamp before hashing? Am I missing something here?


Type your question above this line.

Course: https://www.educative.io/collection/5668639101419520/5649050225344512
Lesson: https://www.educative.io/collection/page/5668639101419520/5649050225344512/5668600916475904

Hi @Phuong_Pham!
The KGS or Key Generating Service does more than simply generate keys. It is a complete process of generating a random six-lettered string, ensuring that the string is unique, and does not cause collisions.
RNG or simply adding timestamps before hashing are alternates but do not ensure the uniqueness or collision avoidance that KGS offers.