yes, it is perfectly safe to use Digilocker to get your marksheets and other documents. It is run by the Ministry of Electronics and IT and is a product of that too.