educative.io

Educative

Number of Keys from base64 Hash

The material says :
Using base64 encoding, a 6 letters long key would result in 64^6 = ~68.7 billion possible strings.

How did you get 64^6 ? Shouldn’t it be 64C6 (that is 64 choose 6 ?)

Thanks


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 @Satish_M_Gopalakrish

Using base64 encoding for a 6-letter key, we get 64 possible characters for each letter. That would make this: 64 * 64 * 64 * 64 * 64 * 64 = 64^6

Hope this helped!

Thanks a lot. So, the repetitions are allowed then. I went with no repeats, thanks for clarifying.

Regards.