BLE peripheral needs password authorization for pairing

BLE peripheral has password authorization requirement to allow connection to Master. Please let know how to add password feature in app so I can pair/connect my app to BLE peripheral.