RM- RSA algorithm. (2nd January 2022)