tagged [encryption]

Encrypting/Decrypting large files (.NET)

Encrypting/Decrypting large files (.NET) I have to encrypt, store and then later decrypt large files. What is the best way of doing that? I heard RSA encryption is expensive and was advised to use RSA...

21 Nov at 02:5

Encrypt password in configuration files

Encrypt password in configuration files I have a program that reads server information from a configuration file and would like to encrypt the password in that configuration that can be read by my pro...

How do you test a public/private DSA keypair?

How do you test a public/private DSA keypair? Is there an easy way to verify that a given private key matches a given public key? I have a few `*.pub`and a few `*.key` files, and I need to check which...

23 Jul at 06:59

algorithm - Is the RijndaelManaged Class in C# equivalent to AES encryption?

algorithm - Is the RijndaelManaged Class in C# equivalent to AES encryption? I am asking this question to confirm whether the RijndaelManaged class in C# is equivalent to AES encryption. From what I h...

18 Jun at 14:44

Encrypt String in .NET Core

Encrypt String in .NET Core I would like to encrypt a string in .NET Core using a key. I have a client / server scenario and would like to encrypt a string on the client, send it to the server and dec...

5 Aug at 17:46

RNGCryptoServiceProvider and Zeros?

RNGCryptoServiceProvider and Zeros? walking through some cryptogtaphy stuff , I saw that `RNGCryptoServiceProvider` has 2 methods : [link](http://msdn.microsoft.com/en-us/library/3bs7131y.aspx) and An...

What is the easiest way to encrypt a password when I save it to the registry?

What is the easiest way to encrypt a password when I save it to the registry? Currently I'm writing it in clear text , it's an in house program so it's not that bad but I'd like to do it right. How sh...

14 Apr at 17:15

Encrypting the connection string in web.config file in C#

Encrypting the connection string in web.config file in C# I have written the name of my database, username and password in my `web.config` file as connection string. I want to encrypt this data. How c...

PgP Encryption and Decryption using BouncyCastle c#

PgP Encryption and Decryption using BouncyCastle c# I've seen a number of posts, followed a number of tutorials but none seems to work. Sometimes, they make reference to some classes which are not fou...

18 Jan at 17:28

Encrypting & Decrypting a String in C#

Encrypting & Decrypting a String in C# What is the most modern (best) way of satisfying the following in C#? BUT with a minimum of fuss involving salts, keys, mucking about with byte[], etc. Been Goog...

1 Nov at 15:31

Decrypt password created with htpasswd

Decrypt password created with htpasswd I created a protection for my web pages with apache2 in ubuntu. Now I am creating an application in c++ and I want it uses the same file that Apache2 uses for au...

24 Sep at 21:7

Why should I care about hashing passwords anyway?

Why should I care about hashing passwords anyway? If a hacker has access to the hashes in my DB, he has access to the rest of the information in the DB anyways. So why would he bother trying to decryp...

13 Nov at 17:30

Encrypting Passwords

Encrypting Passwords I've read a number of questions which suggest hashing passwords and storing them in the database. When someone logs in, you hash the password provided with what you have stored. W...

1 Feb at 11:40

Windows Phone 7 - SQLite with Encryption

Windows Phone 7 - SQLite with Encryption I was using [System.Data.SQLite](http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki) for SQLite in Windows Mobile. It has built-in encryption su...

22 Oct at 07:24

Decrypt PHP encrypted string in C#

Decrypt PHP encrypted string in C# I have a string encrypted in PHP that I would like to decrypt in C#. I used the tutorial below to do the encryption, but am having problems decrypting. Can anyone po...

18 Sep at 15:5

Converting Secret Key into a String and Vice Versa

Converting Secret Key into a String and Vice Versa I am generating a key and need to store it in DB, so I convert it into a String, but to get back the key from the String. What are the possible ways ...

18 Mar at 17:39

Difference between symmetric crypto algorithms

Difference between symmetric crypto algorithms C# looks to have 4 different symmetric crypto algorithms: RijndaelManaged, DESCryptoServiceProvider, RC2CryptoServiceProvider, and TripleDESCryptoService...

5 Aug at 17:48

Specified key is not a valid size for this algorithm

Specified key is not a valid size for this algorithm I have with this code: ``` RijndaelManaged rijndaelCipher = new RijndaelManaged(); // Set key and IV rijndaelCipher.Key = Convert.FromBase64...

18 Jun at 07:22

Really simple encryption with C# and SymmetricAlgorithm

Really simple encryption with C# and SymmetricAlgorithm I'm looking for a simple crypt / decrypt method. I will be using always the same static key. I'm aware of the risks of this approach. Currently ...

SecureString to Byte[] C#

SecureString to Byte[] C# How would I get a `byte[]` equivalent of a `SecureString` (which I get from a `PasswordBox`)? My objective is to write these bytes using a `CryptoStream` to a file, and the `...

7 Sep at 15:52

SQLite Database Encryption C#?

SQLite Database Encryption C#? I'm using ORMLite and SQLite for my ORM and database in a WPF application. The way I am currently encrypting my data is by using an AES 256 function that encrypts each i...

How to suppress "An application is requesting access to a protected item" popup

How to suppress "An application is requesting access to a protected item" popup I'm getting a pop-up when trying to use a certificate to decrypt data. I'm creating a self-signed certificate, and I'm u...

Use RSA private key to generate public key?

Use RSA private key to generate public key? I don't really understand this one: According to [https://www.madboa.com/geek/openssl/#key-rsa](https://www.madboa.com/geek/openssl/#key-rsa), you can gener...

24 Sep at 08:26

How to use 'System.Security.Cryptography.AesManaged' to encrypt a byte[]?

How to use 'System.Security.Cryptography.AesManaged' to encrypt a byte[]? Basically i want to use System.Security.Cryptography.AesManaged (or a better class, if you think there is one?) to take one by...

9 Jun at 01:33

Using Blowfish Encryption within .NET

Using Blowfish Encryption within .NET I am working on a project where I need to undertake Blowfish encryption and decryption. Is there anything out there that others are using to do this within but ca...

21 Apr at 09:2