Liking cljdoc? Tell your friends :D

turvata.keys


generate-tokenclj

(generate-token)

Create a new high-entropy token.

Returns a map with

  • :token the token as a string
  • :hashed the hashed value to place in the catalog
Create a new high-entropy token.

Returns a map with
- `:token` the token as a string
- `:hashed` the hashed value to place in the catalog
sourceraw docstring

hash-tokenclj

(hash-token token)

Hash a bearer token for storage in a catalog.

Security note: this assumes tokens are high-entropy random secrets (e.g. generated by generate-token), not user-chosen strings.

Hash a bearer token for storage in a catalog.

Security note: this assumes tokens are high-entropy random secrets (e.g.
generated by `generate-token`), not user-chosen strings.
sourceraw docstring

random-tokencljdeprecated

(random-token)

Deprecated name for generate-token kept for compatibility.

Deprecated name for `generate-token` kept for compatibility.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close