P
Peter Hartlén
Hi!
Let's say I want to store some data encrypted (symmetric encryption so that
I can look at the original data in plain text later on) in a database (or
elsewhere). Usually you need a private key or passphrase to do the
encryption. This passphrase is the most important part of your security as a
thief could easily decrypt your data if it is known.
How safe is it to use a key like this:
public class MyCryptoClass
{
private byte[] privateKey = new byte[16] {82, 44, 37, 1, 73, 5 ... }
private void Encrypt()
{...}
private void Decrypt()
{...}
}
What are my options?
/ Peter
Let's say I want to store some data encrypted (symmetric encryption so that
I can look at the original data in plain text later on) in a database (or
elsewhere). Usually you need a private key or passphrase to do the
encryption. This passphrase is the most important part of your security as a
thief could easily decrypt your data if it is known.
How safe is it to use a key like this:
public class MyCryptoClass
{
private byte[] privateKey = new byte[16] {82, 44, 37, 1, 73, 5 ... }
private void Encrypt()
{...}
private void Decrypt()
{...}
}
What are my options?
/ Peter