Large language models, such as ChatGPT developed by OpenAI, have significantly enhanced productivity in various software development tasks. Despite these advancements, the security of code generated by those models remains a concern. This study investigates the security of ChatGPT-generated cryptographic API code snippets in four popular programming languages: Java, Python, C, and JavaScript. Our findings reveal that ChatGPT, on average, produces 1.38