public void changePass(string strNewPass) { Byte[] keya = new Byte[6] { 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe }; Byte[] ctrlbyte = new Byte[4] { 0xff, 0x7, 0x80, 0x69 }; Byte[] keyb = new Byte[6] { 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe }; Byte[] bNewPassHex = passToHex(strNewPass); int sauth = E7Lib.fw_authentication(iDevice, 0, sectorNumber); //fw_change3 int state = E7Lib.fw_changeb3(iDevice, sectorNumber, ref keya[0], ref ctrlbyte[0], 0, ref keyb[0]); }