Encapsulated passkey logic