Swift port of https://github.com/mcomisso/H-ound