mirror of
https://github.com/rudollee/Encryption.git
synced 2026-08-11 16:33:06 +00:00
Remove "\0" Char at result of Decrypt
This commit is contained in:
@@ -54,7 +54,7 @@ namespace Encryption
|
|||||||
|
|
||||||
cStream.Read(fromEncrypt, 0, fromEncrypt.Length);
|
cStream.Read(fromEncrypt, 0, fromEncrypt.Length);
|
||||||
|
|
||||||
return new UTF8Encoding().GetString(fromEncrypt);
|
return new UTF8Encoding().GetString(fromEncrypt).Replace("\0", "");
|
||||||
}
|
}
|
||||||
catch (CryptographicException e)
|
catch (CryptographicException e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user