how I can to activate the password on nRF51822 for connect to BLE?
What are you testing this with? Are you actually pairing? Please use MCP or nRF MCP. If you want to use nRF UART you need to change the permission of the attributes permissions with BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM(), like here.