In this study, the chaotic behavior of a second-order circuit comprising a nonlinear resistor and Chua's diode is investigated. This circuit, which includes a nonlinear capacitor and resistor among its components, is considered one of the simplest nonautonomous circuits. The research explores various oscillator characteristics, emphasizing their chaotic properties through bifurcations, Lyapunov exponents, periodicity, local Lyapunov region, and resonance. The system exhibits both stable equilibrium points and a chaotic attractor. Additionally, the second objective of this study is to develop a novel cryptographic technique by incorporating the designed circuit into the S-box method. The evaluation results suggest that this approach is suitable for secure cryptographic applications, providing insights into constructing a cryptosystem for images and text based on its complex behavior. Real-life data were analyzed using various statistical and performance criteria after applying the proposed methodology. These findings enhance the reliability of the cryptosystems. Moreover, The proposed methods are assessed using a range of statistical and performance metrics after testing the text and images. The cryptographic results are compared with existing techniques, reinforcing both the developed cryptosystem and the performance analysis of the chaotic circuit.