Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-1057

Generate a wider variety of library short names

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • S16 SIMPLY Jul26-Aug9

      Currently, generated library names are 6 hex digits, encoded from 3 bytes of information generated by os.urandom(). This level of security is appropriate for a shared secret but not necessary for a library name, which will be served to the public. Using the full alphabet instead of hex digits will also let libraries visually distinguish their short name from their shared secret (which is nothing but hex digits).

      I originally thought that 6 hex digits wasn't enough to represent all the libraries we'd need, but it does allow for 16,777,216, which is plenty. So this isn't as high priority as I originally thought. However, using the full alphabet lets us represent 308,915,776 libraries, and the chance of a collision is much lower.

            leonardrichardson Leonard Richardson [X] (Inactive)
            leonardrichardson Leonard Richardson [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: