dongxiao1591 2014-06-14 09:05
浏览 27
已采纳

加密加密,能够使用加密数据

I get latitude and longitude from users and store them within a MySQL database. My service seems to be anonymous so I want to encrypt coordinates in an undecryptive way (like md5 does). But the problem is that I need to compute distance in any moment after writing coords to the DB. So, is there any way to make computing operations within that "encrypted dome"? I use PHP. Thanks a lot!

  • 写回答

1条回答 默认 最新

  • doulangchao8934 2014-06-14 09:33
    关注

    md5 is hashing, not encryption. Therefore you are losing information, that can never be restored again. With lost information you can't do any calculations.

    What you need is a true encryption, which then works both ways, to decrypt your data. There is no way around it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 wpf datagrid如何实现多层表头
  • ¥15 为啥画版图在Run DRC会出现Connect Error?可我Calibre的hostname和计算机的hostname已经设置成一样的了。
  • ¥20 网站后台使用极速模式非常的卡
  • ¥20 Keil uVision5创建project没反应
  • ¥15 mmseqs内存报错
  • ¥15 vika文档如何与obsidian同步
  • ¥15 华为手机相册里面的照片能够替换成自己想要的照片吗?
  • ¥15 陆空双模式无人机飞控设置
  • ¥15 sentaurus lithography
  • ¥15 关于#linux#的问题:子进程1等待子进程A、B退出后退出(语言-c语言)