Skip to content

Instantly share code, notes, and snippets.

@wowkin2
wowkin2 / blockchain.py
Last active May 18, 2018 09:13
Simple implementation of blockchain by example
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hashlib as hasher
import datetime as date
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
@LoranKloeze
LoranKloeze / stemwijzer.py
Created February 7, 2017 00:47
Script om stemwijzer resultaten te pretty printen
#!/usr/bin/env python3.5
import subprocess
from prettytable import PrettyTable
import json
import time
print("Gegevens ophalen...")
party_ids = ['x'] * 2000
party_ids[1078] = 'VVD'
party_ids[1079] = 'PvdA'
@atoponce
atoponce / gist:07d8d4c833873be2f68c34f9afc5a78a
Last active March 19, 2024 17:24 — forked from tqbf/gist:be58d2d39690c3b366ad
Cryptographic Best Practices

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from

@jkeefe
jkeefe / raspberry-pi-ble-sniffer.md
Last active September 16, 2023 14:33
Notes on using Adafruit's "Bluefruit" BLE sniffer with a Raspberry Pi

BLUETOOTH SNIFFER

Working to sniff Bluetooth Low Energy with the adafruit sniffer

For more information, see this blog post

Going the python route, as described here

before installing pySerial, did ...

> Creatiefmetstemmen
>
> Een centraal georganiseerd proces met stemcomputers is vrijwel zeker weinig transparant; ook al is het aantoonbaar cryptografisch veilig dan nog krijgt het geen vertrouwen.
Cryptografisch veilig maakt het erg moeilijk om een begrijpelijk (voor een normale burger) kiesproces te hebben. Hier ben ik het dus mee eens, maar het gaat om meer dan vertrouwen. Het gaat erom dat elke burger in principe het recht heeft om het stemproces te kunnen volgen en begrijpen.
>
> Maar wat is er wel mogelijk? Hoe krijg je meer mensen naar de stembus, krijg je een veiliger verkiezingsproces, een minder foutgevoelige werkwijze, een goedkopere verkiezing, een snellere uitslag? ...
Interessante vragen...