Is it possible to write a python code to enter password when connect to a bluetooth module? Project that I am doing now is control ON/OFF ports on development board, so to make it more secure I would like to add a password function before get to control ports.

Hey there,
you have to use micro controller but

interfacing a microcontroller to a bluetooth module isn't as easy as it password. First of all you have to build memory and the ability to utilise the bluetooth stack into it.

bluetooth modules are readily available, but they're expensive because they're complicated.

good luck with your project