This is part of a question I asked on information security stack exchange which might be better suited here.
I'm looking to implement a script in an ad-hoc scripting language with no crypto libraries, which can tell whether or not a password is valid without revealing the password. I also need the password to be as short as possible without being crackable.
One possibility is to store a large semiprime and have the password be a factor. But semiprimes need to have factors which are hundreds of bits long to be difficult to crack. I'd rather the password be around 64 bits. I'm considering storing a 1024-bit semiprime along with 448 bits of one of its 512-bit factors, and have the other 64 bits be the password, but I have no idea if this is crackable.
So my question is: If a 1024-bit semiprime is stored along with the first 448 bits of one of its 512-bit factors, can the remaining 64 bits of that factor be feasibly found?