dtrpv60860 2012-05-24 20:48
浏览 50

使用PHP上传和显示时扭曲和扭曲图像

I am working with PHP and using Codeigniter framework. Is there a way that, when uploading and saving an image on the server, I can distort it and un-distort when displaying it back on the web page?

What I want is if someone gets hold of the images they can’t see what’s in it. It’s for an extra level of security.

Many thanks.

  • 写回答

1条回答 默认 最新

  • duanmei1930 2012-05-24 21:08
    关注

    You can encrypt the images after they've been uploaded, and decrypt them again just when a user requests them. That's going to be CPU-intensive if you serve a lot of images, but if you want to ensure your images can't be read by third parties who may have gotten access to your server's hard disk, encryption is the way to go.

    Of course, if that's what you want to prevent, you should not store the decryption key on your server! So you'd need to implement some sort of public-private key system, where the users themselves hold the decryption key for their images.

    For maximum security, you could also consider using an SSL connection for uploads and downloads.

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?