public void LockString() { var key = new Key(); var sl = new SecretLocker(key); var en = sl.Lock(TEST_STRING); var de = sl.UnlockString(en); Assert.AreEqual(TEST_STRING, de); }
public void LockString() { var key = new Key(); var sl = new SecretLocker(key); var en = sl.Lock(TEST_STRING); var keyS = string.Join(", ", key.Bytes); var combinded = string.Join(", ", en.Combined); var n = string.Join(", ", en.Nonce.Bytes); var c = string.Join(", ", en.Ciphertext); var de = sl.UnlockString(en); Assert.AreEqual(TEST_STRING, de); }