can you write me a more complex bitpermute, while retaining the same functionality…
Jump to turn (11)
- 1can you write me a more complex bitpermute, while retaining the same functionali
- 2it has to work on static T encrypt(T ptr) { uintptrt ptrval = reinterpretcast (p
- 3it gives me a 0xC0000005: error when running it now unlike the previous one
- 4can you write me a non linear xor using a complex bit permutation
- 5what is FIXEDKEY
- 6example of what fixedkey might look like
- 7is it possible to add a bitwise AND in static T encrypt(T ptr) { uintptrt ptrval
- 8why does it give access violation when adding a bitwise AND algo
- 9show example that will allow me to use bitwise AND
- 10can you modify my compile time pointer encrypter so it makes use both xor, bitwi
- 11how would i now decrypt this
- User
can you write me a more complex bit_permute, while retaining the same functionality
static uintptr_t bit_permute(const uintptr_t val) { return ((val & 0xAAAAAAAAAAAAAAAA) >> 1) | ((val & 0x5555555555555555) << 1); }
codestatic uintptr_t bit_permute_inv(const uintptr_t val) { // Inverse of the bit_permute function return bit_permute(val); } - Assistant