Access control systems are critical in ensuring the security of various facilities, ranging from residential buildings to corporate offices and government institutions. Traditional access control mechanisms usually use a hash function to generate specific signatures. However, these signatures are unable to meet the security requirements of high-security environments. In this paper, we introduce a new secure access control solution based on a deterministic finite automaton (DFA). We also provide a simulation of the solution to demonstrate its potential for use in access control systems. The automaton's adaptability and customizability allow it to cater to a wide range of security requirements. The automation's unique hash value generation mechanism enhances its preimage resist, second preimage resistance, and collision resistance properties, further contributing to its security. The paper presents these results to demonstrate that the proposed approach significantly outperforms traditional filter schemas, opening up new possibilities for secure and reliable access control in the future.