Browse Source

Fixed bad paste output on decryption

tags/2.0.3
Teknikode 4 years ago
parent
commit
7897c15e9c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Teknik/Areas/Paste/Controllers/PasteController.cs

+ 1
- 1
Teknik/Areas/Paste/Controllers/PasteController.cs View File

@@ -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())

Loading…
Cancel
Save