tor --hash-password newpassword
16:8AAFE154916DD5E86098C741C81FFD4769FC270942315E9ADCC8D00701