Porting one function from php to elixir

If it is a cookie, is it not acceptable to lose the current data and start with a new algorithm in PHP and Elixir?