encrypt and decrypt tokens using the repository's RSA key

This is the first step in adding basic authentication to the API
endpoint