From ba9885512a63ff52af864ef29c1d0299151de25d Mon Sep 17 00:00:00 2001 From: troymc Date: Sun, 29 May 2016 18:42:06 +0200 Subject: [PATCH] Minor edits to cryptography.md --- docs/source/cryptography.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/cryptography.md b/docs/source/cryptography.md index 0fde8371..48865939 100644 --- a/docs/source/cryptography.md +++ b/docs/source/cryptography.md @@ -2,11 +2,11 @@ The section documents the cryptographic algorithms and Python implementations that we use. -The implementations that we have chosen for now are just for fast prototyping. Some of them are pure Python implementations which may be slow. As future work, we should look at other alternatives. +Before hashing or computing the signature of a JSON document, we serialize it as described in [the section on JSON serialization](json-serialization.html). ## Hashes -For hashing we are using the sha3-256 algorithm and [pysha3](https://bitbucket.org/tiran/pykeccak) as the Python implementation. We store the hex encoded hash in the database. For example: +We compute hashes using the SHA3-256 algorithm and [pysha3](https://bitbucket.org/tiran/pykeccak) as the Python implementation. We store the hex-encoded hash in the database. For example: ```python import hashlib