简体   繁体   English

32 位系统上的密码散列然后迁移到 64 位系统

[英]Password hashing on 32bit system then migrating to 64bit systems

I came across a potential issue when migrating from a 32bit system to a 64bit system.从 32 位系统迁移到 64 位系统时,我遇到了一个潜在问题。

the system runs two 'one way' encryption algos on the string.系统对字符串运行两个“单向”加密算法。

However when I tried the same code on a 64 bit system the hashes were different, now thats fine but does anyone have any method on how to ensure the the hash can still be retreived and matched in the future when upgrading to 64bit and beyond?但是,当我在 64 位系统上尝试相同的代码时,哈希值不同,现在这很好,但是有没有人有任何方法可以确保 hash 在将来升级到 64 位及更高版本时仍然可以被检索和匹配?

Without risking the customers sensitive password?不冒客户敏感密码的风险? or ever storing the raw password or other sensitive data without encryption?或者曾经在没有加密的情况下存储原始密码或其他敏感数据?

Basically, just make sure that you're using the same algorithm.基本上,只要确保您使用的是相同的算法。 If your hashes were different with the same inputs, you were using a different algorithm;如果输入相同的哈希值不同,则说明您使用的是不同的算法; there may be some unstated dependencies upon the underlying word size.可能对基础字长存在一些未说明的依赖关系。 Make sure you don't use those types of algorithms, or if you do, that they have very clear expectations of the word sizes and that those things can be overridden by you.确保你不使用这些类型的算法,或者如果你这样做了,它们对字长有非常明确的期望,并且这些东西可以被你覆盖。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM