[英]Argon2id Hex to Hash
I'm migrating users from one user store to another.我正在将用户从一个用户存储迁移到另一个。 The user password info is stored in Argon2 hash. I have figured out all the inputs, I have the encoded hash but I cannot figure the steps between Hex Form and Encoded Form
用户密码信息存储在 Argon2 hash 中。我已经计算出所有输入,我有编码的 hash 但我无法计算十六进制形式和编码形式之间的步骤
I have used this generator for a lot of my testing.我已经使用这个生成器进行了很多测试。
My current database stores the passwords in the "Hex" format我当前的数据库以“十六进制”格式存储密码
1908e66ff0fb22c7e52f8820f511c9edc486....
The solution I am migrating to requires them to be in Encoded format for import我要迁移到的解决方案要求它们采用编码格式以便导入
$argon2id$v=19$m=65536,t=2,p=1$<my-salt-hash>$GQjmb/D7IsflL4gg9RHJ7cS.... // I need last value
How do I turn the "Hex" string into either the full "Encoded" string at least the encoded hash password value (The last bit)如何将“Hex”字符串至少转换为完整的“Encoded”字符串编码的 hash 密码值(最后一位)
Since no programming language is mentioned, I'm going to give a general answer:由于没有提到编程语言,我将给出一个笼统的答案:
The last "encoded" part is the Base64 representation of the password hash (your hex string).最后一个“编码”部分是密码 hash(您的十六进制字符串)的 Base64 表示。 One has to convert the hex representation into bytes and encode those into Base64.
必须将十六进制表示形式转换为字节并将其编码为 Base64。
Maybe this Hex-To-Base64-Converter is helpful: https://cryptii.com/pipes/base64-to-hex也许这个 Hex-To-Base64-Converter 有帮助: https://cryptii.com/pipes/base64-to-hex
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.