简体   繁体   English

Argon2id 十六进制到 Hash

[英]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.

相关问题 应用程序对客户端的mac地址和计算机的名称以及其他计算机属性进行哈希处理以创建唯一的ID - App to hash client's mac address and computer's name and other computer attributes to create unique id 使用 Cognito 用户池的 AWS Amplify Auth 未在 JWT id_token 中返回 nonce 或 at_hash 声明 - AWS Amplify Auth with Cognito User Pool not returning nonce or at_hash claim in JWT id_token 将用户 ID 和密码 hash 存储在 cookie 中以进行自动登录? vBulletin 类型的身份验证是否可以接受? - Storing user id and password hash in a cookie for auto login? Is vBulletin-type authentication acceptable? 如何在Symfony 4中找出对Argon2i的memory_cost,线程和time_cost有用的值? - How to find out what values are good for memory_cost, threads and time_cost for Argon2i in Symfony 4? 将 CryptoJS 与十六进制字符串一起使用 - using CryptoJS with hex-string 存储哈希值 - Store hash value 将$ hash用作方法setParameter() - Using $hash for the method setParameter() 控制器的不同哈希算法 - different hash algorithm for controllers UserCreationForm,哈希密码和authenticate() - UserCreationForm, hash password and authenticate() Salt 和 hash 中的密码 Python - Salt and hash a password in Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM