encrypt implemented
decrypt added. Now program works with unknow error