是否可以在 MS Access 2007 中使用 SHA512 摘要

发布于 2024-12-20 16:34:07 字数 160 浏览 4 评论 0原文

我们有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落墨 2024-12-27 16:34:07

可以直接使用的东西并不多,但如果你不介意安装 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文