move securehash back into the stdlib

This commit is contained in:
Araq
2017-12-21 12:34:16 +01:00
parent 0181253eea
commit e0e1241a54
5 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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
------------------

View File

@@ -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

View File

@@ -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"