Encrypt the Password Generation API response on the server side and then decrypt it on the client side.