mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Fixed EncryptedString.Set( NULL ) error.
This commit is contained in:
parent
7ddf8f812c
commit
31b7313322
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ public string Get()
|
|||
|
||||
public void Set(string String)
|
||||
{
|
||||
if (String == null) { this.encryptedString = null; return; }
|
||||
var encryptor = this.des.CreateEncryptor();
|
||||
byte[] str = Encoding.Default.GetBytes(String);
|
||||
this.encryptedString = encryptor.TransformFinalBlock(str, 0, str.Length);
|
||||
|
|
|
|||
Loading…
Reference in a new issue