Here is a helpful essay regarding the risks and safer alternatives:
If you have Find My iPhone enabled, you can erase your device and reset the passcode via iCloud.com . freetenorshare4ukeyregistrationcode2024100 link