Encryption and Decryption of Alpahabets to Integers

30 Views Asked by At

I'll explain my case with an example. Say, I've 2 words,

  1. FOOTBALL

  2. FOOD

Let f(FOOTBALL) = 845614,

f(FOOD) = 74312

and f(FO) = 132

Is there any method to get f'(845614, 2) = 132 and f'(74312,2) = 132