Liking cljdoc? Tell your friends :D

re-share.encryption

pgp secret encryption support, in order to test we can generate a testing keyring:

gpg --no-default-keyring --keyring trustedkeys.gpg --fingerprint

gpg --no-default-keyring --keyring trustedkeys.gpg --gen-key

A public and private keyrings should be exported (for bountycastle support):

gpg --no-default-keyring --keyring trustedkeys.gpg --export >> test/resources/public.gpg

gpg --no-default-keyring --keyring trustedkeys.gpg --export-secret-keys >> test/resources/secret.gpg

pgp secret encryption support, in order to test we can generate a testing keyring:

  gpg --no-default-keyring --keyring trustedkeys.gpg --fingerprint

  gpg --no-default-keyring --keyring trustedkeys.gpg --gen-key

A public and private keyrings should be exported (for bountycastle support):

  gpg --no-default-keyring --keyring trustedkeys.gpg --export >> test/resources/public.gpg

  gpg --no-default-keyring --keyring trustedkeys.gpg --export-secret-keys >> test/resources/secret.gpg
raw docstring

alpha-numericclj

source

decodeclj

(decode s)
source

decryptclj

(decrypt encrypted secret-key pass)

Unlock secret and decrypt encrypted string (key isn't cached)

Unlock secret and decrypt encrypted string (key isn't cached)
sourceraw docstring

encodeclj

(encode bs)
source

encryptclj

(encrypt input public-key)

Load public key and encrypt input

Load public key and encrypt input
sourceraw docstring

list-privateclj

(list-private k)
source

list-publicclj

(list-public k)
source

load-privateclj

(load-private path)
source

load-publicclj

(load-public path)
source

random-strclj

(random-str l)
source

read-passclj

(read-pass)

Under both lein run and lein repl (System/console) is nil, we use following workaround (works only under tmux):

  1. Create a tmux window and use read -s to write the password into a file.
  2. Read the file and delete it. Note:
  3. This isn't as secure as System/console readPassword but still better than reading the password in the clear.
  4. We assume that we run under tmux (no check is made)
Under both lein run and lein repl (System/console) is nil, we use following workaround (works only under tmux):
   1. Create a tmux window and use read -s to write the password into a file.
   2. Read the file and delete it.
Note:
  1. This isn't as secure as System/console readPassword but still better than reading the password in the clear.
  2. We assume that we run under tmux (no check is made)
 
sourceraw docstring

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

× close