Skip to content
Coherence is cryptographic server for modern web apps
Branch: master
Clone or download
Latest commit d3b7336 May 21, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
coherence02 Add files via upload May 9, 2019
.gitignore Initial commit Mar 26, 2018
LICENSE Initial commit Mar 26, 2018 Update May 21, 2019
_config.yml Set theme jekyll-theme-hacker Mar 26, 2018 Update Apr 30, 2019

Welcome to (Cryptoserver)

 _______  _____  _     _ _______  ______ _______ __   _ _______ _______
 |       |     | |_____| |______ |_____/ |______ | \  | |       |______
 |_____  |_____| |     | |______ |    \_ |______ |  \_| |_____  |______


"Privacy is the power to selectively reveal oneself to the world". Eric Hughes


"Suitable connection or dependence, consistency" (in narrative or argument), also more literally "act or state of sticking or cleaving of one thing to another".


The future of data breaches is not encouraging, on 2017 less than 4% of data breaches the cryptography became the data stolen into data useless, with enterprise options as well as open source options to perform cryptography even so year in year out data breaches grow.

Coherence (ko.eˈɾen.s) performs and offloads cryptography operations with a focus on interoperability, flexibility and simplicity. Coherence gives an interface for modern cryptographic algorithms which is inspired by web APIs, but being HTTP-less, it is implemented as a TCP non-blocking server with a JSON interface in order to be used by any language, in other words Coherence minimizes development time and code complexity. Some of the algorithms offered by Coherence are AES and AES candidates, Sosemanuk, SHA* family, HMAC, DH, RSA, DSA, ECC, NTRU.

Becoming data breaches into data useless


  • Hash functions: SHA3, SHA2, SHA1, WHIRLPOOL, Blake2b, SipHash.
  • Password-hashing function: Argon2
  • Stream ciphers: Sosemanuk, Salsa20/20.
  • Block ciphers: AES, RC6, MARS, Twofish, Serpent, CAST-256, Camellia, SPECK, SIMECK.
  • Block ciphers modes: CTR, GCM.
  • Message authentication codes: HMAC(SHA3, SHA2, SHA1, WHIRLPOOL), CMAC(AES, RC6, MARS, Twofish, Serpent, CAST-256, Camellia), VMAC(AES, RC6, MARS, Twofish, Serpent, CAST-256, Camellia), Poly1305.
  • RSA: Key generation, digital signature, encryption.
  • DSA: Key generation, digital signature.
  • DH: Key generation, key exchange (rfc and custom parameters).
  • ECC: Key generation, ECIES, ECDSA, ECDH, Curve25519, ECNR.
  • Post-Quantum Cryptography: NTRU, Qtesla.

Be careful qtesla is not an standard yet and is experimental, We are including Qtesla as previous feature from experimental branch

If you are looking for Post-Quantum Cryptography, no standard features and so on, please see experimental branch

Quickstart (Docker image)

  • docker pull liesware/coherence:master
  • docker run -p 6613:6613 -it liesware/coherence:master /usr/bin/coherence 6613

Quickstar (Dockerfile)

Quickstart (Linux)

For Centos 7 dependencies:

  • yum install glibc-static libstdc++-static autoconf automake gcc gcc-c++ make libtool git wget unzip

For Debian 9 dependencies:

  • apt-get install autoconf automake gcc g++ make libtool git wget unzip

Now compile it:

#!/usr/bin/env python

import socket
import json
import os,binascii

def sending(message):
	ip = ''
	port = 6613
	BUFFER_SIZE = 65536
	s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
	s.connect((ip, port))
	data = s.recv(BUFFER_SIZE)
        print data
	return data

data_js='{"version":1,"algorithm":"SHA3_512","type":"string","plaintext":"Hello world!"}'

We are getting SHA3-512 for "Hello world!" string.


You can use your favorite language, we are using python only for illustrative examples( your language needs to support TCP sockets and json format).

The code is very simple and with basic programming knowledge you should be able to understand it. You only need to understand python tcp sockets and json format.


on ~/coherence02/

Terminal 1

  • watch python -p $(pidof coherence)

Terminal 2

  • cd bin/ && ./coherence 6613

Terminal 3

  • cd examples/ && sh



Please see


  • Be cryptoserver (server dedicated for cryptography)
  • Improve security in L7 (Cryptography for webapps)


Current version Essence.


  • Master: Stable and standard algorithms.
  • Experimental: postquatum algorithms and homomorphic encryption, pairing based cryptography , as well as new features.


Through Github


We will be so happy to listent to you, only concise and well-reasoned feedback are welcome. please be critic with yourself before writing.

coherence 4t liesware d0t com



You can’t perform that action at this time.