Replaces token with encrypted one