是否可以在 MS Access 2007 中使用 SHA512 摘要
我们有一个 MS Access 应用程序,它通过 odbc 使用 mysql 数据库,其中包含用户凭据表。该表由用户名和使用 SHA512 处理的加密密码组成。我们希望做的是将输入密码与数据库加密密码进行比较,但找不到任何可以在 MS Access 中使用的 vba sha512 摘要函数。有什么想法吗?
We have a MS Access app that uses a mysql database via odbc, which contains a table for user credentials. The table consists of a username and a crypted password digested with SHA512. What we are hoping to do is compare the input password to the database crypted password, but cannot find any kind of sha512 digest function for vba that can be readily used in MS Access. Any thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以直接使用的东西并不多,但如果你不介意安装 Visual Studio,那是相当简单的。
您需要在 Visual Studio 中创建一个简单的类库并使其作为 COM 库可见,这里有一些很好的说明 从 Access 调用 .Net 库。
在 VS 类库中,您只需创建 SHA512 类 的实例并调用计算哈希方法。在 VBA 中,您添加对 COM 库的引用,然后像本地类一样使用它。
There is not much you can use directly, but if you don't mind installing visual studio, it's quite easy.
You need to create a simple class library in Visual Studio and make it visible as a COM library, here are some good instructions for Calling a .Net library from Access.
In the VS class library you just create an instance of the SHA512 Class and call the compute hash method. In VBA you add a reference to the COM library then use it like a local class.