decryption

Secure(ish) encryption/decryption algorithms in vb.net using a string as a key

Is there a way to encrypt/decrypt text (string form) in VB.net using another string as a key? Meaning, if one user encrypts using this key, the other user needs to decrypt using the same key? I do NOT mean public and private key encryption or anything of the sort. Can someone help me build two subs for these? If not, what is the secon...

How do I decrypt RSA data in C#.NET appropriately?

Hello. My server creates a RSACryptoServiceProvider and exports its parameters to a variable (RSAKeyInfo). Then, the public key is sent to the client, and the client encrypts something with that public key. Now, I need to be able to decrypt this very data when sent back to the server - hence why RSA is useful in my case. However, I g...

Reversing django.contrib.auth.models.User password, sha1 to readable string

from django.contrib.auth.models import User u = User.objects.get(username='test') user.password u'sha1$c6755$66fc32b05c2be8acc9f75eac3d87d3a88f513802 Is reversing this password encryption possible? ...

Rijndael Decryption error - Length of the data to decrypt is invalid

I am able to encrypt a zip file using rijndeal but when i decrypt I get an error that says "Length of the data to decrypt is invalid" Im getting the byte array to decrypt from a file. Here is how i get the byte array. Dim FStream As FileStream = File.OpenRead("<Filepath>") EncData = New Byte(FStream.Length) {} FStream.Read(EncData, 0, ...

RijndaelManaged Key generation

I need to encrypt data and store it in a file and later be able to decrypt it back. For this I am using RijndaelManaged class. Now I do not want to keep the key hardcoded in the code. After some googling I found this method - Here the key is generated but then all other values like passphrase, salt and IV are hardcoded. I do not have th...

Encrypt in VBScript/ASP Classic, Decrypt in PHP?

I'm looking to encrypt a string in VBScript, and decrypt it in PHP. I have full control over the VBScript/ASP Classic environment, but zero control over my PHP environment. Given this, what sort of encryption could I use that would be adequate enough to secure a string? Apologies for the vagueness of the question, but I do not know wh...

Fast Lightweight .NET Client Encryption -> Server Decryption

Hi there, I have a simple client/server setup. The client and the server both have a private key. What does .NET offer me in the way of ClientData-> ClientEncrypt with KEY-> Transmit to Server-> ServerDecrypt with KEY-> ClientData Can anyone suggest any fast simple libraries to read up on? Thanks ...

PHP and C# communication with Encrypt/Decrypt

Hello, I have been searching and cant find a consistent solution to my problem : I want to encrypt something in C# and decrypt it in PHP but also be able to encrypt in PHP and decrypt in C#, using the same key on both ends. All the solutions I found dont seem to work both ways, most of them only work on one language and then fail on th...

Wincrypt: Unable to decrypt file which was encrypted in C#. NTE_BAD_DATA at CryptDecrypt

I am trying to decrypt a piece of a file with wincrypt and I cannot seem to make this function decrypt correctly. The bytes are encrypted with the RC2 implementation in C# and I am supplying the same password and IV to both the encryption and decryption process (encrypted in C#, decrypted in c++). All of my functions along the way are ...

Java SealedObject

I am encrypting an string with PBEWITHSHA256AND128BITAES-CBC-BC using SealedObject and write it to a file. After encrypting when i do a cat on the resulting file i i get read the salt used and the algorithm used in plain text even though the actual data is encrypted. Doesn't that give crackers a head start? They know the salt and the al...

Help decrypting in ColdFusion passwords created in .NET

I have a SQL db storing passwords that were encrypted through a .NET application, that I need to decrypt through a ColdFusion app. I just can't seem to get things set upproperly for the CF decryption to work. Any help would by appreciated. Thanks. The .NET decryption code is: public string Decrypt(string input) { try { D...

DES Initialization Vector in C#

I am trying to decrypt (using the DES algorithm) data that comes from a third party in C# code. There are plenty of examples here and elsewhere that have helped me out. The problem is that I don't know what to use for the 'initialization vector'. The third party supplied a tool for use on the command line (DES.EXE, which I believe is a...

DES Initialization Vector in C#

I am trying to decrypt (using the DES algorithm) data that comes from a third party in C# code. There are plenty of examples here and elsewhere that have helped me out. The problem is that I don't know what to use for the 'initialization vector'. The third party supplied a tool for use on the command line (DES.EXE, which I believe is an...

C# encryption, C++ decryption. Final few bytes failing on decryption.

My apologies for the length of the code I'm about to list. I need to encrypt the contents of an xml file on the C# end of my code, and decrypt it in C++. I'm using RC2, with RC2CryptoServiceProvider and CryptoStream on the C# side, with Wincrypt on the C++ side. Encryption seems to be working fine, it looks like such: public static ...

Decryption of file missing ~10 characters from ending.

I've written Encryption/Decryption methods using the RC2CryptoServiceProvider in C# and for some reason, I cannot get my decryptor to decrypt the final few bytes. The file seems to just cut off. My encryption method looks like: public static byte[] EncryptString(byte[] input, string password) { PasswordDeriveBytes pder...

What decryption method is this?

This function is written in ActionScirpt. What kind of decryption this is? Is there existing function in PHP for this function? function decrypt(str, key1, key2) { var v1 = []; var v3 = 0; while (v3 < str.length) { switch (str.charAt(v3)) { case '0': v1.push('0000'); break; case '1': v1.push...

Decryption type and breaking (AES 128?)

Hi, My question has 2 parts. The first one is "what possible type of encryption i am on" and the other is, "what is the chance of breaking it" (as soon as the encryption algorithm was found). So, I got the original file and the encrypted one and I was able to test the behaviour of the encrypted when something changes in the original. T...

Password encryption/ decryption code in .NET

I want simple encryption and decryption of password in C#. how to save the password in encrypted format in database and retrieve as original format by decryption, kindly anyone help with sample code. ...

coldfusion decrypt in php

Hello. I'm not english speaker, sorry in advance. I have a ColdFusion 6.1 application, and now I'm trying to migrate to another enviroment. In the ColdFusion application the passwords of my users are crypted with a ColdFusion function: password_encrypted=toBase64(encrypt(text,key)); any one knows how can I decrypt it in PHP? I don't k...

md5 encrypt cookiedata with serialized array

Hello, I was attempting to encrypt de cookie data with md5, but I can not validate the hash back. It has got to do, with the fact that cookie_data is a serialized array, because normal stringvalues work ok. It's actually from a codeigniter class, but it does not work?? Does anyone know what the problem might be? $hash = substr($s...