extensions: Shorter salt size for AES
This commit is contained in:
parent
8fd165bd35
commit
748c929844
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue