Yes. TheThe hard part is of course to find the order of the elliptic group and its factorisation. IdeallyIdeally, if the order of the group is a prime number (use a primality test), you know that k = 1$k = 1$, and any point on the curve is a good generator. That
That said, it is not because you have found an elliptic group with prime order, that it is a cryptographically safe group. ForFor instance, if the order of the group equals p when you are working over F_p$F_p$, you have a cryptographically weak curve. There
There are other conditions that give rise to cryptographically weak curves. Generating a cryptographically good curve is somewhat tricky. If
If this is for a toy example, with relatively small curves for illustrative purposes only, then as others said, use Sage.