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.
我正在尝试创建一个包含用户名、加密密码短语和盐的表。密码短语和关联的 salt 对于用户名是唯一的。对于此设置,哈希表是否是一个好主意,还是我应该使用不同的数据结构?
如果要将元素存储为键值对,则使用哈希表,其中键必须是唯一的