encryption

How to export non-exportable private key from store

I need to export private key from Windows store. What should I do if key marked as non-exportable? I know that it is possible, program jailbreak can export this keys. To export key I use Org.BouncyCastle.Security.DotNetUtilities.GetKeyPair() that export key from (RSACryptoServiceProvider)cryptoProv.ExportParameters(true). Exported key I...

Encrypt WHOLE xml file - C#

How to encrypt WHOLE an xml file using C#? ...

Difference in SHA1 in .NET and MySQL

Hey, I have a couple different bits of code but the short story is I insert some passwords into a MySQL database using SHA1 and also compute SHA1 hashes into .NET and they are not matching. I think this is a problem with my encoding code in .NET. SQL Code: INSERT INTO user_credentials (Password) VALUES (SHA1('password')); password h...

cfusion_encrypt php alternative

Does anybody know any php alternative to coldfusion's cfusion_encrypt? Currently cfusion_encrypt is still used via curl and its trouble since the cf server keeps going down. It would be a lot better if anyone could give me a php alternative to this function. Thanks. ...

Adding AES encryption to VC++ application

Hi, I created a GUI application in VC++ and now I wanted to do a AES128 encryption to the data, I am writting to it. Can anyone please let me know how can I do that in VC++. ...

Decryption function in PHP returning a value of 1 (What am I doing wrong?)

This is the method public function _PRZ_decrypt_data($_salt, $_input) { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $_salt, $_input, MCRYPT_MODE_ECB, $this->_PRZ_get_iv())); } I am calling it as one of my parameters as follows $this->_PRZ_decrypt_data($salt, base64_decode($code)) It seems to be returning a 1 when a prope...

Cryptography / Compression in Silverlight

I'm porting my application from WPF to Silverlight. The biggest problem is that my application uses RSA encryption and Deflate compression, and both classes are not available in Silverlight. I know that you can view the sourcecode of any .NET class using reflection, so would it be possible to just 'decompile' the RSACryptoService class,...

Storing private key information and passwords for ssh logins

Alright I am working on a system for managing a bunch of vps. This includes mundane maintenance tasks as well as resource allocation. In order to accomplish this my control server will need to be connecting to the various servers. I regularly use ssh public/private key and this seems like the most logical way to connect from the control...

Why is AES more secure than DES?

I am beginning to learn crypto algorithms and I understand how the above mentioned algorithms work. Is it that the key length of AES is longer? Which steps of AES encryption makes it less vulnerable than DES? ...

Decrypting images using JavaScript within browser.

I have a web based application that requires images to be encrypted before they are sent to server, and decrypted after loaded into the browser from the server, when the correct key was given by a user. [Edit: The goal is that the original image and the key never leaves the user's computer so that he/she is not required to trust the s...

JSON security in mobile client - server environemnt

Hi, I am using JSON for data exchange between my mobile client and the server. I am using that for some sensitive data transfers. However is their any risk in this data format or any security consideration using JSON format? Also the communication is done in HTTPS. Also I need to know whether we need to apply basic encryption standard...

how to protecte .net application of cracking

hello i work on an application , my application read serial number's a device , i want check the serial number and my application work just with this device and does not work with other device how do i encrypte and check this serial number that my application is not crackeable?? thanks ...

Android - how to encrypt a string?

I am working on an Android app and have a couple strings that I would like to encrypt before sending to a database. I'd like something that's secure, easy to implement, will generate the same thing every time it's passed the same data, and preferably will result in a string that stays a constant length no matter how large the string bei...

Two-way encryption on a local webserver that could get stolen

I have an offline kiosk computer that will be running a LAMP web server and hosting a form for people to walk up and fill out. The data they submit will be encrypted and stored in a MySQL database (all stored locally on that machine). The concern is that if the entire box was stolen, someone would potentially be able to get into the cod...

What does the C function bit_get do in DES encryption?

Hi there, I stumbled upon this piece of code while reading about DES encryption. I wonder what it does do exactly? I see that it returns either 1 or 0 according to the result of the last if. I also understand that mask is in hexadecimal and equals 128 in decimal (why this particular value?). The for loop starts from 0 until pos%8, why?...

What is the best practice when saving passwords using the C# Settings feature?

I am using Visual C# built in feature Settings to save some of my program's options. I also want to store one password, but then it comes public... is it possible to encrypt the password before saving it using this settings method and then decrypt it back? ...

How to compress, encrypt, and then read/search large XML file stored on iphone disk?

I have a large 'book' that I need to compress, encrypt and also make searchable on the iphone. The app has some requirements that won't allow a simple PDF or EPUB. I have the book in plain text on my computer, and I am parsing/converting it to XML. I want to compress the file to reduce app purchase download time, and encrypt the app j...

How to copy data encrypted by dbms_obfuscation_toolkit.DESEncrypt

Hi, I have an Oracle (10.2.0.4) database table with a column which is encrypted by dbms_obfuscation_toolkit.DESEncrypt tool kit. Some of our data has been messed up by it getting re-encrypted with another key. I want to do some testing on this data to try and recover it. Therefore, I want to copy the data from our live system and into...

RSA Encryption in c# using Exponent, Modulus and Base as parameters

I have a proprietary application that uses an extension to handle cryptography. To encrypt a string I feed it Exponent, Modulus, Base and string as parameters. It returns the encrypted string. I need to be able to replicate this functionality in a c# application that talks to the proprietary application. I'm unsure where to begin with t...

Check encrypted file for empty content

I'm using gpg to decrypt files sent to me by a vendor. Everything works fine accept for when the content of the encrypted file is empty (the vendor has told me that there is no content in the files in question). If I try and decrypt one of these files I get: gpg: can't handle this ambiguous signature data Is there any way to che...