Parent Previous Next


Extract every Nth byte of a blob - creating an array of blobs. This function is the opposite of a @BinaryMerge.


 @BinaryExtract(Blob bytes; Integer everyNth) : Blob[]




 Blob res[], big := 0x00010203040506070809;

 res[] := @BinaryExtract(big, 3);

 //Now res[] ~ [0x00030609, 0x010407, 0x020508];

TIP: This function allows for the creation of a number of different arrays simply by choosing different values for N. Working on these arrays using different kinds of calculations, rotations and much more, can result in a multitude of hash values to validate a blob is untampered.