I’m reading this document which will probably educate me in this matter:
https://www.apple.com/business/docs/iOS_Security_Guide.pdf
For instructions on how to reset your passcode, this is like using an A-bomb to swat a fly. . . LOL! It is a good start to understand Apple's concepts of security though. There are other papers that go into more depth. This is a very good one for an over view, though.