Linux中的Capicom解密 [英] Capicom Decryption in Linux

查看:195
本文介绍了Linux中的Capicom解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用RC4加密的Windows CAPICOM库的数据库。以下PHP脚本在Windows服务器上正常工作。

  ... 
$ oCapiCapi = new COM(CAPICOM.EncryptedData );
$ oCapiCapi - >算法= 1;
$ oCapiCapi - >算法 - > KeyLength = 3;
$ oCapiCapi - > SetSecret( OURveRYSecretKey);
...
$ oCapiCapi - >解密($ orsd [1]);
$ Decrypted = $ oCapiCapi - >内容;
...

我想在linux服务器上解密相同的数据库。我该怎么办?可以解密使用CAPICOM加密的数据吗?



谢谢。

解决方案

CAPICOM使用标准加密算法, 3DES。如果您自己解析加密的缓冲区,您应该能够使用任何语言进行解码。



有关CAPICOM缓冲区的详细信息,请从这里开始:
http://www.jensign.com/JavaScience/dotnet/DeriveBytes/index.html



如果您只使用一个加密算法来处理单个来源的数据,那么您应该能够显着简化缓冲区解析代码。


I have a database that encrypted with windows CAPICOM library with RC4. Following PHP script works fine on windows server.

    ...
$oCapiCapi = new COM("CAPICOM.EncryptedData");
$oCapiCapi -> Algorithm = 1;
$oCapiCapi -> Algorithm -> KeyLength = 3;
$oCapiCapi -> SetSecret('OURveRYSecretKey');
    ...
    $oCapiCapi -> Decrypt($orsd[1]);
    $Decrypted = $oCapiCapi -> Content;
    ...

I would like to decrypt the same database on linux server. How Should I do that? Can I decrypt the a data that encrypted with CAPICOM?

Thank you.

解决方案

CAPICOM uses standard encryption algorithms such as 3DES. If you parse the encrypted buffers yourself, you should be able to decode them using any language.

For details on CAPICOM buffers, start here: http://www.jensign.com/JavaScience/dotnet/DeriveBytes/index.html

If you're dealing with data from a single source using only one crypto algorithm, you should be able to simplify your buffer parsing code significantly.

这篇关于Linux中的Capicom解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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