I think that if encryption is used, then the swap is protected from corruption. (It doesn't offer the same level of protection of zfs that it will retry to read from the other disk).
I suppose that if there is corruption, the swap could no be decrypted, and freenas will panic. not? It is enough for me.
Nope. It doesn't work like that. The "corrupted" data will still decrypt, but you get GIGO.. Garbage In -> Garbage Out. FreeNAS may panic from the corruption regardless of if it is encrypted or not. Encryption doesn't change the likelihood of the system panicing. The risk is still the same.
So no, your logic is incorrect.
One question
1- Is there some known problem using swap (not backed by zfs) and zfs ? I am thinking in use 8g memory + 8 gb swap. I know that the performance
may not be good, if it begins trashing.
Swap is not an alternative to RAM like it is for Windows. If you are in a situation where you are actually using the swap, that means that you should be upgrading RAM. This isn't like Windows where swap, if enabled, is designed to be used.
Additionally, if you aren't using swap, that doesn't mean that if performance sucks more RAM isn't the solution. It only means that your system isn't trying to allocate more RAM than your system has.
The two reasons why swap exists is:
1. If you have to do a disk replacementa and the new disk is slightly smaller because of a firmware revision, you can absorb that loss by not using a swapspace on that disk. This can and does happen from time-to-time.
2. If you run out of RAM and have no swapspace then the system is almost guaranteed to panic. With swapspace, instead of the panic the system will continue running but may perform slower. Which would you prefer for system uptime? :) It also allows the system to continue functioning until you can order new RAM and schedule a time to install it.