简体   繁体   English

Genexus Encrypt64 TwoFish实现

[英]Genexus Encrypt64 TwoFish implementation

I am working on an environment that is in c# (not Genexus) and I need to encrypt data using the same implementatio of the TwoFish algorithm used by Genexus Encrypt64 method. 我正在c#(不是Genexus)环境中工作,我需要使用与Genexus Encrypt64方法所使用的TwoFish算法相同的实现来加密数据。

I have the encryption key and examples for some inputs (unencrypted) and the outputs (encrypted) that I should generate. 我有应该生成的一些输入(未加密)和输出(加密)的加密密钥和示例。 I have prioblems because I got some implementations of the TwoFish algorithm from the web but none of them appear to be the same as thge one used in Genexus. 我有麻烦,因为我从网络上获得了TwoFish算法的一些实现,但它们似乎都与Genexus中使用的算法不同。 Also, I tried some online tools and none of them worked. 另外,我尝试了一些在线工具,但没有一个起作用。

Has anyone faced this problem before? 有人遇到过这个问题吗? Is there any other operation that I should be doing other than the TwoFish encryption? 除了TwoFish加密之外,还有其他我应该做的其他操作吗? What mode does Genexus use for the TwoFish encryption?} Genexus使用哪种模式进行TwoFish加密?}

Thanks in advance! 提前致谢!

I found this info about twofish and GeneXus: 我找到了有关twofish和GeneXus的信息:

http://wiki.genexus.com/commwiki/servlet/wiki?8386,Encrypt64%20Function http://wiki.genexus.com/commwiki/servlet/wiki?8386,Encrypt64%20Function

And this is the algorithm: https://app.assembla.com/spaces/genexus_standard_classes/subversion/source/23/X_Ev2_U6/CSharp/GxClasses/Twofish_Algorithm.cs 这是算法: https : //app.assembla.com/spaces/genexus_standard_classes/subversion/source/23/X_Ev2_U6/CSharp/GxClasses/Twofish_Algorithm.cs

If this do not help. 如果这没有帮助。 Please elaborate your problem, for instance which input do you have and what is the expected output. 请详细说明您的问题,例如您有哪些输入以及预期的输出是什么。 And compare with the expected output. 并与预期输出进行比较。 And of course what version of GeneXus you have to exchange data with. 当然,您必须与哪个版本的GeneXus交换数据。

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

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