Enhancing Cryptographic Systems With Ternary-Based Methodologies And Physical Unclonable Functions