Example #1
0
        public bool VerifyAccessConditions(String str)
        {
            this.isverifyaccess       = false;
            this.verifyaccessstring   = str.PadRight(8, '0');
            this.accessConditionBytes = HexEncoding.GetBytes(this.verifyaccessstring);

            this.GetAccessConditions();
            this.CalculateAccessBits();
            this.verfyaccesssresult = HexEncoding.ToString(this.accessConditionBytes);
            this.isverifyaccess     = (this.verifyaccessstring.Substring(0, 6) == this.verfyaccesssresult.Substring(0, 6));

            return(this.isverifyaccess);
        }
Example #2
0
 public AccessCondition(String AccessString)
 {
     this.accessConditionBytes = HexEncoding.GetBytes(AccessString.PadRight(8, '0'));
     this.GetAccessConditions();
 }