Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 mysql 中使用 SHA 5 加密和解密数据。我能够加密数据但无法解密它。如何在mysql中实现SHA5加密数据的解密。
你到底想做什么?正如迈克尔所说,您将无法反转哈希。当我们想要隐藏真实信息并且从不解密时,我们使用哈希。如果要解密它,请使用可逆函数。
哈希算法(SHA = 安全哈希算法)是一种方法。您可以使用 then 来验证密码等信息,方法是检查输入的密码在 SHA 时是否等于记录的加密版本。你不能用它解密。