Working encryption code for ATMEGA8pa-pu