Ba e buna Algoritmul de cryptare arata cam asa (PHP) : ... function encrypt($word) { if (isVowel(substr($word,0,1))) { echo "$word" . "way "; } else { echo moveLetter($word) . "ay "; } } // Recursive function to take off a non vowel letter and put it on the end // Recall the function until a vowel is encountered and then return the word. function moveLetter(&$word) { if (!isVowel(substr($word,0,1))) { $chLetter = strtolower(substr($word,0,1)); $word = substr($word,1) . $chLetter; return moveLetter($word); } else { return $word; } } Decodarea se face exact invers Succes!