Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit766d5bd

Browse files
committed
Take away
1 parent015650e commit766d5bd

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 stringsof variousentropy bits.
89+
Convenience functions`smallID`,`mediumID`,`largeID`,`sessionID` and`token` provide random stringsfor variouspredefined 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'tneed randomstrings of length L.
503+
-Don'tspecify randomness usingstrings of length.
504504
- String length is a by-product, not a goal.
505-
-You don'tneed trulyunique strings.
506-
-Uniqueness is too onerous.You'll do fine with probabilisticallyunique strings.
507-
- Probabilistic uniqueness involvesmeasured risk.
508-
- Riskmeasured as*"1 in__n__ chance of generating a repeat"*
509-
- Bits of entropy gives you that measure.
510-
- You need to a totalof**_N_** strings with a risk**_1/n_** ofrepeat.
511-
- The characters are arbitrary.
505+
-Don'trequire trulyuniqueness.
506+
- You'll do fine with probabilisticallyuniqueness.
507+
- Probabilistic uniqueness involvesspecified risk.
508+
- Riskis specified as*"1 in__n__ chance of generating a repeat"*
509+
- Do specify bits of entropy.
510+
- Specified as the riskofrepeat in a total number ofstrings
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)

[8]ページ先頭

©2009-2026 Movatter.jp