@@ -86,7 +86,7 @@ Custom characters may be specified. Using uppercase hexadecimal characters:
86
86
87
87
> 16E26779479356B516
88
88
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 .
90
90
91
91
Small ID represents a potential of 30 strings with a 1 in a million chance of repeat:
92
92
@@ -118,7 +118,7 @@ OWASP session ID using [RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)
118
118
119
119
> HRU1M7VR5u-N6B0Xo4ZSjx
120
120
121
- Base 64 character 256 bits token
121
+ Base 64 character, 256-bit token
122
122
123
123
``` js
124
124
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
500
500
501
501
#### Take Away
502
502
503
- - You don 't need random strings of length L .
503
+ - Don 't specify randomness using strings of length.
504
504
- 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.
512
512
- You need ` entropy-string ` .
513
513
514
514
##### Base 32 character string with a 1 in a million chance of a repeat a billion strings:
0 commit comments