如何在VBA中执行密码存储的Unicode归一化?
我想在VBA中存储和比较Hashed密码。
我已经阅读我如何正确地实现Unicode密码?,但是我不知道从哪里开始。
如何在VBA中标准化Unicode字符串?
最好是,我会在不下载ICU的情况下执行此操作。链接的帖子是指的,因为我希望我的项目不依赖外部代码。
I want to store and compare hashed passwords in VBA.
I've read How do I properly implement Unicode passwords?, but I have no clue about where to start.
How do I normalize a unicode string in VBA?
Preferably, I'd do this without downloading the ICU the linked post refers to, because I'd like my project not to be dependent on external code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Windows提供了用于标准化字符串的内置 - unaryizestring函数。但是,使用可能有点棘手。
这是基于上面提供的文档中的C示例的实现:
一旦您声明了标准化功能,请在哈希(Hashing)之前通过它运行密码:
Windows provides a built-in for normalizing strings, the NormalizeString function. However, it can be a bit tricky to use.
Here is an implementation, based on the C example in the docs provided above:
Once you have declared the normalization function, always run your password through it before hashing: