Node-Red Encryption Flow

Hi! I’m a beginner working on a smart home security project using Node-RED and Home Assistant. I’m currently trying to implement a small encryption feature: after a user enters the alarm code, the code should be encrypted (e.g., using AES or another simple algorithm). The encrypted version could either be stored securely in a local folder or passed on to the alarm system for verification. I’m not quite sure how to implement this flow in Node-RED — especially how to handle encryption in a secure and efficient way. If anyone has done something similar or has tips, examples, or recommended nodes (maybe using crypto-js or function nodes), I’d be super grateful for your help :slight_smile: