temp encryption algorithm