使用WinAPI CryptEncrypt的加密文件,Key存在但忘记了加密方法 [英] Encrypted file with WinAPI CryptEncrypt , the Key is exists but forgot the cryptography method

查看:521
本文介绍了使用WinAPI CryptEncrypt的加密文件,Key存在但忘记了加密方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


i有一个旧的非托管DLL,来自VC ++编程的旧时代



现在我需要使用它再次,这个DLL使用一个许可文件,我用WinAPI cryptEncrypt / Decrypt函数设置加密,  i
记住密钥
 ,但我不记得我使用过哪种加密方法!



遗憾的是,由于硬盘故障导致源代码丢失



现在我需要使用这个DLL并需要解密其许可证文件



你们有什么建议吗?



感谢高级

解决方案

b

感谢您的帖子。


>>我有一个旧的非托管DLL从VC ++编程的旧时代现在我需要再次使用它,这个dll使用了一个许可文件,我用WinAPI cryptEncrypt / Decrypt函数设置了它的加密,我记得密钥了,但是我不记得我用过的加密方法!... 



什么是"加密方法"是什么意思?

据我所知你可以使用密钥来解密文件,这是更多信息。

示例C程序:解密文件

CryptDeriveKey功能
$


祝福,祝你好运b $ b $
Jack Zh昂


i have an old unmanaged DLL from the old days of programming in VC++

now i need to use it again , this dll uses a license file which i set up its encryption with WinAPI cryptEncrypt/Decrypt functions , i remember the key , but i do not remember which cryptography method i've used !

unfortunately the source code is lost due to a HDD failure

now i need to use this DLL and need to decrypt its license file

do you guys have any suggestion ?

thanks in advanced

解决方案

Hi,

Thanks for post here.

>>i have an old unmanaged DLL from the old days of programming in VC++ now i need to use it again , this dll uses a license file which i set up its encryption with WinAPI cryptEncrypt/Decrypt functions , i remember the key , but i do not remember which cryptography method i've used !... 

What's the "cryptography method" means?
As far as I know you can use a key to decrypt a File, Here is more information.
Example C Program: Decrypting a File
CryptDeriveKey function

Best Wishes,

Jack Zhang


这篇关于使用WinAPI CryptEncrypt的加密文件,Key存在但忘记了加密方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆