def from_key(self, public_id, key):
from pyhsm.yubikey import modhex_encode, modhex_decode<EOL>otp = self.get_otp(key)<EOL>from_key = modhex_encode(public_id.encode('<STR_LIT>')) + modhex_encode(otp.encode('<STR_LIT>'))<EOL>return from_key<EOL>
Return what the YubiKey would have returned when the button was pressed.