Re-encrypt API credentials