Skip to content

Generate secure random token for patients

Georgios Andreadis requested to merge 22-generate-secure-random-tokens into development

What does this MR do?

This uses the SecureRandom class in Java, which is a cryptographically secure RNG. I produce a token of length 32, with each being one of 64 characters we define. This amounts to 6 bits * 32 = 192 bit security. Modern block/stream ciphers rely on 128 bits to my knowledge, so this should be sufficient. Please have a careful look and let me know if you agree or find any issues with this approach!

Closes #22 (closed)

Does this MR meet the acceptance criteria?

  • I have added a changelog entry to reflect the significant changes I made. [We don't have a changelog]
  • Tests were created to test the feature.
  • I have updated the documentation accordingly.
  • I adhere to the style guide.
Edited by Georgios Andreadis

Merge request reports