Hi all, I have been trying to devise a method of creating 4 digit passcodes using a known code, calendar dates and a simple math function.
Here is the scenario, my neighbour put a keypad on his gate which controls access to a community campground. The code is CAMP (2667) and thats great for this year, but it would be good to change it next year however not 2668, 2669 etc as that is too guessable.
What I was hoping to to was take the known code of 2667, multiply by this year 2022 and getting 5,392,674 take say the first or last 4 digits and theres your code
Next year the neighbour would take the known code of 2667, multiply by 2023 and use that code in the keypad for 2023 however these codes increment in a predictable way so thats no good (it obvious when you think about it)
I tried a divide function but got different precisions for different years (see sample below) so not sure if this would translate wel across different calculators ie iphone calculator app vs excel
I looked into Von Neumanns M2M randomising method but the very first time I tried it I had 01 as the middle digits so that wasn't going to work & then I had a result that had an odd number of digits. You could work around this of course but then there is more to remember about the system and it was at this point when I realised there is probably a much easier method and I need to talk to my maths friends!
Extending this principle it would be great if the pincode to your Air BNB for March could be generated in this way HOUSE (46873) x MARCH 2022 (0322) = 15,093,106, apply function and generate code
Any suggestions greatly appreciated!
Here is the scenario, my neighbour put a keypad on his gate which controls access to a community campground. The code is CAMP (2667) and thats great for this year, but it would be good to change it next year however not 2668, 2669 etc as that is too guessable.
What I was hoping to to was take the known code of 2667, multiply by this year 2022 and getting 5,392,674 take say the first or last 4 digits and theres your code
Next year the neighbour would take the known code of 2667, multiply by 2023 and use that code in the keypad for 2023 however these codes increment in a predictable way so thats no good (it obvious when you think about it)
I tried a divide function but got different precisions for different years (see sample below) so not sure if this would translate wel across different calculators ie iphone calculator app vs excel
I looked into Von Neumanns M2M randomising method but the very first time I tried it I had 01 as the middle digits so that wasn't going to work & then I had a result that had an odd number of digits. You could work around this of course but then there is more to remember about the system and it was at this point when I realised there is probably a much easier method and I need to talk to my maths friends!
Extending this principle it would be great if the pincode to your Air BNB for March could be generated in this way HOUSE (46873) x MARCH 2022 (0322) = 15,093,106, apply function and generate code
Any suggestions greatly appreciated!
Known Code | Date | Multiply Method |
2667 | 2022 | 5392674 |
2667 | 2023 | 5395341 |
2667 | 2024 | 5398008 |
2667 | ||
2667 | Divide Method | |
2667 | 2022 | 1.318991098 |
2667 | 2023 | 1.3183391 |
2667 | 2024 | 1.317687747 |
2667 | ||
2667 | MSM | |
2667 | 2022 | 5392674 |