示例#1
0
        private void SetName(byte[] encryptedName, byte[] key)
        {
            using var aesDecrypt = new AesQuickCrypto(key, IV);
            var name = Encoder.GetString(aesDecrypt.DecryptBytes(encryptedName));

            PlainName = name;
        }
示例#2
0
        public byte[] GetEncryptedName(byte[] key)
        {
            var plainTextPathBytes = Encoder.GetBytes(PlainName);

            using var aesEncrypt = new AesQuickCrypto(key, IV);

            return(aesEncrypt.EncryptBytes(plainTextPathBytes));
        }