more crypto stuff and some hex and ascii handling