Liking cljdoc? Tell your friends :D

fluree.crypto.scrypt


checkclj/s

(check raw encrypted salt)
(check raw encrypted salt n r p)

Compare raw message (bytes) with previously encrypted (bytes) that was encrypted with the provided salt, n, r and p. Returns true or false.

Compare raw message (bytes) with previously encrypted (bytes) that was
encrypted with the provided salt, n, r and p.
Returns true or false.
sourceraw docstring

encryptclj/s

(encrypt raw)
(encrypt raw salt)
(encrypt raw salt n)
(encrypt raw salt n r p)
(encrypt raw salt n r p dk-len)

Encrypts message (bytes) using salt (bytes). Returns encrypted message in bytes directly.

Note verification of message will require the identical salt, n, r, p used by the original encryption.

Encrypts message (bytes) using salt (bytes).
Returns encrypted message in bytes directly.

Note verification of message will require the identical salt, n, r, p used
by the original encryption.
sourceraw docstring

random-bytesclj/s

(random-bytes size)

Returns a random byte array of the specified size. NOTE: This will only work in the browser, not for node.js

Returns a random byte array of the specified size.
NOTE: This will only work in the browser, not for node.js
sourceraw docstring

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

× close