我有一个简单的Express应用程序,我尝试通过使用AES 256加密来隐藏图像的实际网址,以便新网址看起来像这样
http://example.com/img/<encrypted-string>
在后端,它只是解密字符串并管理来自实际网址的响应。
// decrypt the string and get actualUrl
var reply = request(actualUrl)
req.pipe(reply)
reply.pipe(res)
事情是它比实际网址慢得多。无论如何,我可以加快这个过程。