Used urlsafe_base64 rather than hex for generating keys