ArkaliaCore.Realm.Utilities.Hash.CryptPass C# (CSharp) Метод

CryptPass() публичный статический Метод

public static CryptPass ( string Key, string Password ) : string
Key string
Password string
Результат string
        public static string CryptPass(string Key, string Password)
        {
            string _Crypted = "";

            for (int i = 0; i < Password.Length; i++)
            {
                char PPass = Password[i];
                char PKey = Key[i];

                int APass = (int)PPass / 16;

                int AKey = (int)PPass % 16;

                int ANB = (APass + (int)PKey) % HASH.Length;
                int ANB2 = (AKey + (int)PKey) % HASH.Length;

                _Crypted += HASH[ANB];
                _Crypted += HASH[ANB2];

            }
            return _Crypted;
        }