The problem with encrypting IPs is that it's feasible to use brute force. Thus, even a non reversible hash algorithm would not be secure (as long as there are no collisions, which would make it kinda useless for the purpose of banning people), for one could easily hash all 2^32 IPs and then simply look up the ones to be "decrypted".