简体   繁体   English

Power Builder 6.5中的SHA 256算法

[英]SHA 256 Algorithm in Power Builder 6.5

I am trying to store the data as secured possible way in database. 我正在尝试以安全的方式将数据存储在数据库中。 For that I am triyng to implement the SHA-256 algorithm in Powerbuilder version 6.5. 为此,我试图在Powerbuilder 6.5版中实现SHA-256算法。 This sound old that I am implememting the SHA 256 in PowerBuilder (Desktop Application Development Tool). 我在PowerBuilder(桌面应用程序开发工具)中实现SHA 256听起来有点老。 Though yet it is outdated we need to implement this secure functionality in PowerBuilder Because lots of applications are dependant on it. 尽管它已经过时了,但是我们仍然需要在PowerBuilder中实现此安全功能,因为许多应用程序都依赖它。

I Googled for any library for PB 6.5 for SHA256 but didn't get anything. 我用Google搜索了PB 6.5的SHA256的任何库,但是什么也没得到。 So please can any one tell me how can I achieve this SHA-256 in PowerBuilder or is there any ready library available fot SHA256 for PB 6.5. 因此,请任何人告诉我如何在PowerBuilder中实现此SHA-256 ,或者针对PB 6.5的SHA256是否有可用的可用库。

Thanks in Advance. 提前致谢。

Have a look at this PB library wich uses the Microsoft Crypto API. 看看使用Microsoft Crypto API的PB库

The example is for PB 8+, I've managed to have it running in PB7 by exporting the nvo and windows objects and importing them in a new PB7 library. 该示例适用于PB 8+,通过导出nvo和Windows对象并将它们导入新的PB7库,我设法使其在PB7中运行。

According to the MSDN documentation you'll have to use the "Microsoft Enhanced RSA and AES Cryptographic Provider" to be able to calculate the SHA256 hash. 根据MSDN文档,您必须使用“ Microsoft增强型RSA和AES加密提供程序”才能计算SHA256哈希。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM