Mod Function In Cryptography