Skip to content
campadrenalin edited this page Sep 14, 2011 · 1 revision

ConcurrenTree.util.hasher

Functions

make(string)

Creates a hex digest using the sha256 algorithm.

make6(string)

The first 6 characters of make(string)

maken(string, n)

The first n characters of make(string)

sum(string)

The CTree sum algorithm, which can be implemented in any language in very few lines of code. See the BCP Reference for more information about CTree-specific algorithms.

strict(obj)

Converts a Python object into a strict JSON string. Implementation of the CTree strict algorithm.

strictify(string)

Takes a JSON string, returns a strict version. Behind the scenes, it turns the string into a Python object, and returns the result of strict on that object.

checksum(obj)

Equivalent to sum(strict(obj)).

key(string)

Turns a tree node value into a key, using the CTree key algorithm.

Python Library

Clone this wiki locally