(generate-key & [kl])
Generate a PKCS #1 key of a given kl
length (in bits, default to 2048 if not specified).
The key is returned as a map meant to be used with public-key
, openssh-public-key
or private-key
functions.
See (https://www.di-mgt.com.au/rsa_alg.html#keygen) for algorithm insights.
Generate a PKCS #1 key of a given `kl` length (in bits, default to 2048 if not specified). The key is returned as a map meant to be used with [[public-key]], [[openssh-public-key]] or [[private-key]] functions. See (https://www.di-mgt.com.au/rsa_alg.html#keygen) for algorithm insights.
(openssh-public-key key)
Return an OpenSSH public key representation of a key
.
Return an OpenSSH public key representation of a `key`.
(private-key key)
Return a RSA private key representation of a key
.
Return a RSA private key representation of a `key`.
(public-key key)
Return a RSA public key representation of a key
.
Return a RSA public key representation of a `key`.
(write-openssh-public-key! k f)
Get the OpenSSH public key from k
and write it to a file named f
.
Get the OpenSSH public key from `k` and write it to a file named `f`.
(write-private-key! k f)
Get the RSA private key from k
and write it to a file named f
.
Get the RSA private key from `k` and write it to a file named `f`.
(write-public-key! k f)
Get the RSA public key from k
and write it to a file named f
.
Get the RSA public key from `k` and write it to a file named `f`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close