updating bakery encryptation functions