twofish

writing php MCrypt twofish for c# bouncycastle

给你一囗甜甜゛ 提交于 2019-12-13 22:05:07
问题 I'm learning how to use the BouncyCastle c# cipher library for doing encryption. I'm not looking to send messages so I'm not thinking about security etc. I have written my c# code in Visual Studio. Here is the problem. I have encrypted the text " Hello World! ", using Twofish in CFB mode. The key is 1234567812345678. I've used phpfiddle http://phpfiddle.org/ online tool. $algo = 'twofish'; $mode = 'cfb'; $cipher = mcrypt_module_open($algo,'',$mode,''); $key = hex2bin(