Working RSA in client-side