There are 2 repositories under termux-lock topic.
Termux-Lock tool allow to set lock, Which ask user-id and password to start termux
TermuX Custom is a GitHub repository designed to empower users to personalize their TermuX experience. With TermuX Custom, you can enhance your Termux interface with features like a customizable login screen, login sound effects, and the ability to change your shell name. The interactive terminal provides a dynamic environment for your TermuX
Lock your Termux application by PyTLock