Skip to content

Instantly share code, notes, and snippets.

View hansieodendaal's full-sized avatar

Hansie Odendaal hansieodendaal

View GitHub Profile
@hansieodendaal
hansieodendaal / raid_id.py
Created March 15, 2019 04:29 — forked from CjS77/raid_id.py
Proposed RAID_ID algorithm
# -*- coding: utf-8 -*-
from hashlib import blake2b
import bitcoin.base58 as base58 #dependency: pip install python-bitcoinlib
import string
import random
import binascii
def create_raid(Pk, fqdn, prefix):
s = fqdn if fqdn else "NO_FQDN"
#Creat hash object