educative.io

Educative

Different KGS - Sequence + Encryption

I think that it is a better alternative:

  1. Handle a fault tolerant sequence to reserve key ranges, which is simple.
  2. Encrypt the key with some encryption algorithm that have a short result that is unguessable.

This way, you don’t a whole DB for KGS for all its meaning.

1 Like