Skip to content

Commit 766d5bd

Browse files
committed
Take away
1 parent 015650e commit 766d5bd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Custom characters may be specified. Using uppercase hexadecimal characters:
8686

8787
> 16E26779479356B516
8888
89-
Convenience functions `smallID`, `mediumID`, `largeID`, `sessionID` and `token` provide random strings of various entropy bits.
89+
Convenience functions `smallID`, `mediumID`, `largeID`, `sessionID` and `token` provide random strings for various predefined bits of entropy.
9090

9191
Small ID represents a potential of 30 strings with a 1 in a million chance of repeat:
9292

@@ -118,7 +118,7 @@ OWASP session ID using [RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)
118118

119119
> HRU1M7VR5u-N6B0Xo4ZSjx
120120
121-
Base 64 character 256 bits token
121+
Base 64 character, 256-bit token
122122

123123
```js
124124
import {Random, Entropy, charSet64} from 'entropy-string'
@@ -500,15 +500,15 @@ Note the number of bytes needed is dependent on the number of characters in our
500500

501501
#### Take Away
502502

503-
- You don't need random strings of length L.
503+
- Don't specify randomness using strings of length.
504504
- String length is a by-product, not a goal.
505-
- You don't need truly unique strings.
506-
- Uniqueness is too onerous. You'll do fine with probabilistically unique strings.
507-
- Probabilistic uniqueness involves measured risk.
508-
- Risk measured as *"1 in __n__ chance of generating a repeat"*
509-
- Bits of entropy gives you that measure.
510-
- You need to a total of **_N_** strings with a risk **_1/n_** of repeat.
511-
- The characters are arbitrary.
505+
- Don't require truly uniqueness.
506+
- You'll do fine with probabilistically uniqueness.
507+
- Probabilistic uniqueness involves specified risk.
508+
- Risk is specified as *"1 in __n__ chance of generating a repeat"*
509+
- Do specify bits of entropy.
510+
- Specified as the risk of repeat in a total number of strings
511+
- Characters used are arbitrary.
512512
- You need `entropy-string`.
513513

514514
##### Base 32 character string with a 1 in a million chance of a repeat a billion strings:

0 commit comments

Comments
 (0)