summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--changelog.md2
-rw-r--r--doc/lib.rst3
-rw-r--r--lib/pure/securehash.nim (renamed from compiler/securehash.nim)0
-rw-r--r--tools/niminst/niminst.nim2
-rw-r--r--web/website.ini2
5 files changed, 5 insertions, 4 deletions
diff --git a/changelog.md b/changelog.md
index d519ecfcf..4d205faf8 100644
--- a/changelog.md
+++ b/changelog.md
@@ -127,8 +127,6 @@ This now needs to be written as:
 - The behavior of ``$`` has been changed for all standard library collections. The
   collection-to-string implementations now perform proper quoting and escaping of
   strings and chars.
-- Removed ``securehash`` stdlib module as it is not secure anymore. The module
-  is still available via ``compiler/securehash``.
 - The ``random`` procs in ``random.nim`` have all been deprecated. Instead use
   the new ``rand`` procs. The module now exports the state of the random
   number generator as type ``Rand`` so multiple threads can easily use their
diff --git a/doc/lib.rst b/doc/lib.rst
index 2719472fe..58dedc49c 100644
--- a/doc/lib.rst
+++ b/doc/lib.rst
@@ -380,6 +380,9 @@ Cryptography and Hashing
 * `base64 <base64.html>`_
   This module implements a base64 encoder and decoder.
 
+* `securehash <securehash.html>`_
+  This module implements a sha1 encoder and decoder.
+
 
 Multimedia support
 ------------------
diff --git a/compiler/securehash.nim b/lib/pure/securehash.nim
index 57c1f3631..57c1f3631 100644
--- a/compiler/securehash.nim
+++ b/lib/pure/securehash.nim
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim
index ab0ce6a5b..9c15326b0 100644
--- a/tools/niminst/niminst.nim
+++ b/tools/niminst/niminst.nim
@@ -15,7 +15,7 @@ when haveZipLib:
 
 import
   os, osproc, strutils, parseopt, parsecfg, strtabs, streams, debcreation,
-  "../../compiler/securehash"
+  securehash
 
 const
   maxOS = 20 # max number of OSes
diff --git a/web/website.ini b/web/website.ini
index d8deb2d70..32b1936d5 100644
--- a/web/website.ini
+++ b/web/website.ini
@@ -64,7 +64,7 @@ srcdoc2: "pure/asyncfile;pure/asyncftpclient;pure/lenientops"
 srcdoc2: "pure/md5;pure/rationals"
 srcdoc2: "posix/posix;pure/distros;pure/oswalkdir"
 srcdoc2: "pure/collections/heapqueue"
-srcdoc2: "pure/fenv;impure/rdstdin;pure/strformat"
+srcdoc2: "pure/fenv;pure/securehash;impure/rdstdin;pure/strformat"
 srcdoc2: "pure/segfaults"
 srcdoc2: "pure/basic2d;pure/basic3d;pure/mersenne;pure/coro;pure/httpcore"
 srcdoc2: "pure/bitops;pure/nimtracker;pure/punycode;pure/volatile;js/asyncjs"