Wrote my own hash function so you don't have to cast as a QByteArray every hash