I'm trying to calculate the cardinality of these two sets. I think the answer is ℵ, and I want to prove it by finding proper injective functions, and using Schröder–Bernstein theorem. Any help will be much appreciated.
F = {f ∈ N → N | f is a bijection}
G = {f ∈ N → N|f ◦ f = idN}
$F$ is the set of permutations of $N$ and $|F| = |\mathscr P(N)| = c $ the cardinality of the reals. $c \ne \aleph_0$ and if you accept the continuum hypothesis then $c = \aleph_1 = 2^{\aleph_0}$. https://en.wikipedia.org/wiki/Aleph_number
$G$ is a subset of permutations (i,e. $G \subset F$) corresponding to swapping elements of $N$. Proof....
Let $g(a) = b $ Then $ a = g(g(a)) = g(b) $, i.e. $g(a) = b \implies g(b) = a$.
So, $|G| \le |F|$ (and there is an injection from $G \to F$)
This is a bit long for a comment, but is only a partial answer as I don't see how to do an injection the other way (but I think you should be able to prove directly that $|G| = |\mathscr P(N)| $)