Exemple #1
0
        /// <summary>
        /// 简单的对称加密,使用默认的加密密钥。
        /// </summary>
        public static EncryptedVector2Int Encrypt(int x, int y, int key)
        {
            if (key == 0)
            {
                key = cryptoKey;
            }

            EncryptedVector2Int result;

            result.x = TSInt.Encrypt(x, key);
            result.y = TSInt.Encrypt(y, key);

            return(result);
        }
Exemple #2
0
        private int InternalEncryptField(int encrypted)
        {
            var result = TSInt.Encrypt(encrypted, cryptoKey);

            return(result);
        }