2) what's the point to do it that way?
3) why do you set $e to be 3 in the private function findE($m)?
4) $code = '0'; in public function encrypt ?
If it is possible i want to learn why do you made all of these in that way and why not in any other way. Thanks in advance.