extensions: Shorter salt size for AES

This commit is contained in:
Hylke Bons 2017-02-02 23:19:27 +00:00
parent 8fd165bd35
commit 748c929844

View file

@ -57,7 +57,7 @@ namespace Sparkles {
public static string AESEncrypt (this string plain_text, string password)
{
Random random = new Random ();
byte [] salt_bytes = new Byte [128];
byte [] salt_bytes = new Byte [16];
random.NextBytes (salt_bytes);
string salt = Convert.ToBase64String (salt_bytes);