Generate 12 character passkey from DateOfBirth and ZipCode
Posted on 2004-11-14
I am using VBScript and want some code that can generate a 12 character passkey using strDateOfBirth and strZipCode.
strDateOfBirth will be in format ddmmyyyy so 29/03/2004 would be 29032004.
This string will be a fixed length of 8 characters.
strZipCode will be of variable length and format as it could be a Zip/Post code from any where around the world.
I want the process to be reversible so given the 12 character (alphanumeric) passkey I can get the original DOB and Postcode from it.