The official language in both countries is Portuguese.
Unlike many other former colonies, Brazil did not adopt Portugal’s version of its hand alphabet.
You can download the Brasilian manual alphabet here.
Hopefully, I will have the Portuguese manual alphabet ready for download soon, too.
In case you want to see more about the geographic distribution of the Portuguese language, you can go here.