1. A method comprising: generating at least one pseudorandom value; selecting one or more instruction sequences from an instruction sequence library based on the at least one pseudorandom value; inserting a chaff code that modifies a value using a first operation and reverses modification to the value using a second operation into a first integrated code; and generating a second integrated code from the first integrated code by replacing each of the one or more instruction sequences in the first integrated code with an equivalent instruction sequence that is pseudo-randomly selected from the instruction sequence library so that each replacement obfuscates the first integrated code.