diff options
author | Araq <rumpf_a@web.de> | 2017-12-21 12:34:16 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-12-21 12:34:38 +0100 |
commit | e0e1241a54b8ad03ac45cdd56b845370a7e050f3 (patch) | |
tree | a0d6762bbe28d67bc025c80c3e21688e3c6c475d | |
parent | 0181253eea4ed5a47c37140c0533bc62d7f09e68 (diff) | |
download | Nim-e0e1241a54b8ad03ac45cdd56b845370a7e050f3.tar.gz |
move securehash back into the stdlib
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | doc/lib.rst | 3 | ||||
-rw-r--r-- | lib/pure/securehash.nim (renamed from compiler/securehash.nim) | 0 | ||||
-rw-r--r-- | tools/niminst/niminst.nim | 2 | ||||
-rw-r--r-- | web/website.ini | 2 |
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" |