Parcourir la source

Fixed bad paste output on decryption

pull/29/head
Teknikode il y a 6 ans
Parent
révision
7897c15e9c
  1. 2
      Teknik/Areas/Paste/Controllers/PasteController.cs

2
Teknik/Areas/Paste/Controllers/PasteController.cs

@ -71,7 +71,7 @@ namespace Teknik.Areas.Paste.Controllers @@ -71,7 +71,7 @@ namespace Teknik.Areas.Paste.Controllers
byte[] ivBytes = Encoding.Unicode.GetBytes(paste.IV);
byte[] keyBytes = AES.CreateKey(password, ivBytes, paste.KeySize);
data = AES.Decrypt(data, keyBytes, ivBytes);
model.Content = Encoding.Unicode.GetString(data);
model.Content = Convert.ToBase64String(data);
}
switch (type.ToLower())

Chargement…
Annuler
Enregistrer