Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lk-geimfari committed Jan 13, 2022
1 parent 43833a2 commit 02a60fe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject likid_geimfari/secrets "1.1.0"
(defproject likid_geimfari/secrets "1.1.1"
:description "A Clojure library designed to generate secure random numbers for managing secrets"
:scm {:name "git"
:url "https://github.com/lk-geimfari/secrets.clj"}
Expand Down
2 changes: 1 addition & 1 deletion src/secrets/constants.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns secrets.constants
"This module contains useful constants for dealing with secrets."
{:author "Isaak Uchakaev"
:last-update-date "01-11-2021"})
:last-update-date "01-01-2022"})

(def digits "0123456789")
(def octdigits "01234567")
Expand Down
6 changes: 3 additions & 3 deletions src/secrets/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
suitable for managing data such as passwords, account authentication, security tokens,
and related secrets."
{:author "Isaak Uchakaev"
:last-update-date "01-11-2021"}
:last-update-date "01-01-2022"}
(:import (org.apache.commons.codec.binary Base64 Hex)
(java.security SecureRandom)))

Expand All @@ -27,7 +27,7 @@
(defn token-hex
"Return a random text string, in hexadecimal.
The string has nbytes random bytes, each byte converted to two hex digits.
If nbytes is nil or not supplied, a reasonable default is used ('default-number-of-bytes')."
If nbytes is nil or not supplied, a reasonable default is used (default-number-of-bytes)."
([] (token-hex default-number-of-bytes))
([nbytes]
(-> nbytes
Expand All @@ -37,7 +37,7 @@
(defn token-urlsafe
"Return a random URL-safe text string, containing nbytes random bytes.
The text is Base64 encoded, so on average each byte results in approximately 1.3 characters.
If nbytes is nil or not supplied, a reasonable default is used ('default-number-of-bytes')."
If nbytes is nil or not supplied, a reasonable default is used (default-number-of-bytes)."
([] (token-urlsafe default-number-of-bytes))
([nbytes]
(-> nbytes
Expand Down
2 changes: 1 addition & 1 deletion src/secrets/tools.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns secrets.tools
"This module contains useful utilities for dealing with secrets."
{:author "Isaak Uchakaev"
:last-update-date "01-11-2021"}
:last-update-date "01-01-2022"}
(:require [clojure.string])
(:import (java.time Instant)
(java.util UUID)))
Expand Down

0 comments on commit 02a60fe

Please sign in to comment.