encryption-symmetric

RSA 1024 and ASE encryption and decryption

Hello. I've seen on this forum that are many professionals that are willing to give a helping hand to beginners like me. I am on my Android beginnings and I am struggling to learn as much as possible. I want to test RSA and ASE encryption and decryption in an android application. I searched around the net but I didn't manage to find ve...

How to use secure encryption of an existing column in SQL Server 2005

I want to encrypt an existing column in SQL Server 2005, using an UPDATE statement, moving the old content into the new encrypted column. So I have 2 choices: Symmetric and Asymmetric. The issue I have is that with a symmetric key, I have to embed the password into an SP in order to read the column like: -- Create key (at some earlier...

Is this a secure encryption method

I'm writing an application for Android that uses symmetric key encryption to protect sensitive data. As far as I can tell, Android only directly supports "PBEWithMD5AndDES". How secure is this algorithm? Also, I've included my code below (non-andriod). Is my code correctly encrypting the data? import java.io.UnsupportedEncodingException...

Is it insecure to pass initialization vector and salt along with ciphertext?

I'm new to implementing encryption and am still learning basics, it seems. I have need for symmetric encryption capabilities in my open source codebase. There are three components to this system: A server that stores some user data, and information about whether or not it is encrypted, and how A C# client that lets a user encrypt the...

Why in brute force attack on Symmetric Algorithm there is 50 percent chance of finding the key after half of the attempts?

Any cryptography text mentions that in brute force attack on Symmetric Algorithm there is 50 percent chance of finding the key after half of the attempt. For e.g. DES with 56 bit key would have 50 percent chance of finding the key after first 2 to the power 55 attempts. Why in a brute force attack against any symmetric encryption algo...

How do I use Sql Server 2005 Symmetric or asymmetric keys through fluent nhibernate?

Here is my issue. I have an account object as follows: public class Account { public virtual int AccountId { get; set; } [Required(ErrorMessage = "Email address is required.")] public virtual string EmailAddress { get; set; } [Required(ErrorMessage = "A password is required.")] public virtu...

How can I encypt a string in PHP, and decrypt it in Java?

I am looking for a very basic encryption that is built into both languages where I can encrypt a string in pHP, and be able to get the data back out in Java. So it cannot be things like MD5. ...

problem in understanding the hill cipher

i want to implement hill cipher but i think i have problem in understanding the algorithm itself. the key i'll use it 2X2 matrix and i'll encode 2 charachter each time. i'll multiply the key matrix with the matrix of 2 charachters then modulus the result on 26 as this equation C = E(K, P) = KP mod 26 where: K:key P:plain text ...

Encryption between C# and ActionScript 2

I'm trying to send encrypted data from a flash ( Action Script 2.0) to decrypt it in C# So far I've found this post (Link opens in Chrome, Opera and Safari. Doesn't work in IE nor Firefox) There's also this question: http://stackoverflow.com/questions/3308781/encrypt-in-actionscript3-and-decrypt-in-asp-net-c But both only work in Acti...

RijndaelEncryption with Java then Decryption with C# and EnterpriseLibrary 4.1

I believe when the EnterpriseLibrary tries to decrypt a RijndaelManaged encrypted string it expects the Initialization Vector to be prepended to the encrypted text. Currently with the code below. I can decrypt the message with out an exception, but I am getting weird characters like: �猀漀椀搀㴀眀最爀甀戀攀㄀☀甀琀挀㴀㈀ ㄀ ⴀ㄀ ⴀ㈀㄀吀㄀㌀㨀㔀㈀㨀㄀㌀ What do...