rijndael

SagePay Form - Classic ASP - Currency Field is missing using rijndael.asp

久未见 提交于 2019-12-19 10:18:05
问题 I am trying to add the Form Intergration SagePay payment gateway in Classic ASP. I have a working PHP version that I sourced from SO. I have translated it into VBSCRIPT, everything seems to be working fine but the encryption. I am using all the same inputs as the PHP script so that the Cryptstring is exactly the same as the PHP Cryptstring before it is encrypted. I've downloaded and using the Rijndael.asp & includes.asp files found here: Encrypting Crypt field using Classic ASP for SagePay

PHP encryption code converted to ColdFusion

蓝咒 提交于 2019-12-19 05:08:09
问题 I have this bit of PHP that I'd like to do the equivalent of in ColdFusion. function & _encryptMessage( $message ) { $td = mcrypt_module_open( MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC, ''); mcrypt_generic_init( $td, $this->key, $this->iv ); $encrypted_data = mcrypt_generic( $td, $message ); mcrypt_generic_deinit($td); mcrypt_module_close($td); return base64_encode( $encrypted_data ); } I think it is just encrypt(message,"","AES","Base64") But I have no real way of knowing for sure and it

Decrypt C# RIJNDAEL encoded text

不想你离开。 提交于 2019-12-18 13:52:48
问题 I'm implementing in Java the communication to a third party application. As part of the login process, the third party application is sending an encrypted string that I have to decode and send back. I have spent nearly 2 days googeling and reading posts but I can't find the right way to implement this. I have a test case where the encrypted string is "c1W2YO1vYQzu6czteEidrG0U4g5gT4h57vAlP7tdjcY=" that decrypted with the password "GAT" must return "101714994". The documentation I have states

Decrypt C# RIJNDAEL encoded text

主宰稳场 提交于 2019-12-18 13:52:01
问题 I'm implementing in Java the communication to a third party application. As part of the login process, the third party application is sending an encrypted string that I have to decode and send back. I have spent nearly 2 days googeling and reading posts but I can't find the right way to implement this. I have a test case where the encrypted string is "c1W2YO1vYQzu6czteEidrG0U4g5gT4h57vAlP7tdjcY=" that decrypted with the password "GAT" must return "101714994". The documentation I have states

How to call use .NET RijndaelManaged from native COM?

旧街凉风 提交于 2019-12-18 07:04:46
问题 Can anyone give example usage for using System.Security.Cryptography.RijndaelManaged from native Win32 using COM? Here is a functional example of how to use .NET's System.Security.Cryptography.SHA256Managed Note : This is an example of how to call SHA256Managed, and not RijndaelManaged**. i show this code to introduce some of the tricky concepts of calling COM objects with early and late-binding, and to show that calling .NET objects with COM Callable Wrappers is possible. Some people might

When will C# AES algorithm be FIPS compliant?

会有一股神秘感。 提交于 2019-12-17 15:40:14
问题 Right now the only way I can get the RijndaelManaged algorithm to work on a computer with the Local Security Setting for FIPS turned on, is to disable it. It is a government computer, so I'm not sure how that will fly. I've seen posts on the msdn blog sites that say they are working on an AES FIPS compliant version, but I cant seem to find out anything more. Does anyone know when this might happen? 回答1: I never realized this before this question, but you're right. The constructor has this:

AES encryption problem in Debug and Release mode

一曲冷凌霜 提交于 2019-12-13 02:30:01
问题 I am using AES encryption algorithm (Rijndael implementation). I am using MS Visual Studio 2008 IDE for my development work. I could see a strange problem in my Debug and Release mode. When I encrypt a string in Debug mode it generates different bytes than Release mode. But fortunately decrypting will result same string. I have tried in Mac, it generates one more byte sequence but able to decrypt all byte sequences correctly. Is this problem related to encryption algorithm or Debug/Release

Rijndael padding or length is invalid

折月煮酒 提交于 2019-12-13 01:37:51
问题 I am trying to encrypt/decrypt a string using eith Rijndael or Aes and the code below. public class Crypto { private const string defaultVector = "asdfg123456789"; private const CipherMode cipherMode = CipherMode.CBC; //Have tried PaddingMode.ISO10126, PaddingMode.None, and PaddingMode.PKCS7 private const PaddingMode paddingMode = PaddingMode.ISO10126; private const int iterations = 2; private static Rijndael GetCrypto(string passphrase) { var crypt = Rijndael.Create(); crypt.Mode =

What does RijndaelManaged encryption do with invalid key sizes

北城以北 提交于 2019-12-12 03:15:28
问题 We are trying to integrate with a legacy c# application that uses RijndaelManaged for symmetric encryption. However it appears that they have used a 13 byte string as an encryption key! The code is basically: var initVectorBytes = Encoding.ASCII.GetBytes("16-char string"); var keyBytes = Encoding.ASCII.GetBytes("13-char string"); var symmetricKey = new RijndaelManaged { Mode = CipherMode.CBC }; var decryptor = symmetricKey.CreateDecryptor(keyBytes, initVectorBytes); var memoryStream = new

Store IV and Key for Rijndael

余生颓废 提交于 2019-12-11 22:03:05
问题 I need to store username and password in an app.config. I want to encrypt these values using Rijndael algorithm. Where do I store the key and IV for decrypting the un and pw? I need to deploy the application to different servers with different users. 回答1: Encrypting the web.config or app.config file is usually done with RSA or DPAPI encryption. I'm not sure if it would suit you in your case, it's only effective if the users of the applications are restricted and not administrators. http:/