Added RSA recover function