Re: Standardized IPv6 ULA from PublicKey

2020-06-28 Thread Derrick Lyndon Pallas
I've been using something similar for ORCHIDv2-ish addressing, q.v. [1]. from base64 import b64decode from hashlib import shake_128 from ipaddress import IPv6Network public_key = b64decode(...) secret = "somesecret".encode('utf-8') network = IPv6Network("2001:20::/28") hash = shake_128(secret

Re: Standardized IPv6 ULA from PublicKey

2020-06-28 Thread Arti Zirk
On L, 2020-06-27 at 17:43 -0400, Reid Rankin wrote: > Luckily, Blake2s is a simple and elegant algorithm, and in an effort > to get some working code out there I've [implemented][1] it in ~100 > lines of Bash script. It turns out that Python includes blake2s implementation that seems to work with