Liking cljdoc? Tell your friends :D
Clojure only.

crypto.password.scrypt

Functions for encrypting passwords using the cutting-edge scrypt algorithm.

See: https://www.tarsnap.com/scrypt/scrypt.pdf

Functions for encrypting passwords using the cutting-edge scrypt algorithm.

See: https://www.tarsnap.com/scrypt/scrypt.pdf
raw docstring

checkclj

(check raw encrypted)

Compare a raw string with a string encrypted with the encrypt function. Returns true if the string matches, false otherwise.

Compare a raw string with a string encrypted with the [[encrypt]] function.
Returns true if the string matches, false otherwise.
raw docstring

encryptclj

(encrypt raw)
(encrypt raw n)
(encrypt raw n r p)

Encrypt a password string using the scrypt algorithm. This function takes three optional parameters:

  • n - the CPU cost, must be a power of 2, defaults to 2^15
  • r - the memory cost, defaults to 8
  • p - the parallelization parameter, defaults to 1
Encrypt a password string using the scrypt algorithm. This function takes
three optional parameters:

* `n` - the CPU cost, must be a power of 2, defaults to 2^15
* `r` - the memory cost, defaults to 8
* `p` - the parallelization parameter, defaults to 1
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close