Part 2: Prevention, investigation and prosecution of crime Chapter 3: Extraction of information from electronic devices Section 42: Code of practice about the extraction of information
Subsection (1) imposes a requirement on the Secretary of State to prepare a code of practice which provides guidance on the exercise of the powers in sections 37(1) and 41(1). The code will give practical guidance to authorised persons on how and when it is appropriate to use the powers. This will ensure they exercise their functions in accordance with the law. The code will ensure a greater understanding on the use of the powers and their application in real life.
	Subsection (2) specifies that the code may make different provisions for different purposes or areas. The powers can be exercised by a number of different bodies (as detailed in Schedule 3) and across all parts of the UK and this subsection ensures that the code can contain guidance specific to the uses of the powers by different bodies or areas if required.
	Subsection (2) requires the Secretary of State to consult with the Information Commissioner, the Scottish Ministers, the Department of Justice in Northern Ireland, the Commissioner for Victims and Witnesses and the Domestic Abuse Commissioner and Commissioner for Victims and Survivors Northern Ireland (and such other persons as the Secretary of State thinks appropriate) in preparing the code.
	Subsections (3) to (9) set out the process for issuing the code of practice. Subsection (6) allows the Secretary of State to revise the code of practice from time to time. For example, as the needs of society and the law could change in the future, the code can be revised to remain relevant and applicable for the exercise of this power.