basic rsa methods