WTH - Rolling Code Function

Can there be either a mask the rolling code part of currant sensors. explained here.

Rolling Code Masking

Or

Can the math be done in the ESPhome to generate and receive a rolling code?