Guest User

Untitled

a guest
Oct 27th, 2021
1,243
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import zlib
  2. import cbor2
  3. import json
  4.  
  5. from cose.messages import CoseMessage
  6. from base45 import b45decode
  7.  
  8. code = 'HC1:6BF$70A90T9WUWGSLKC 4%C93WE7WE:%544E9CK+500XKIJC*983F3R7485L2F3/NQE6LY50.FK8ZKO/EZKEZ967L6C56..DX%DZJC8/DNGQ9HQIHQDHQEHQMHQLPCG/D2 C B9CY8 JC2/DQGQFHQNHQMPCG/D%OC/0AJPCT3E5JDJA7KF6%965W5A567:EDOL9WEQDD+Q6TW6FA7C466KCK9E2H9G:6V6BEM6Q$D.UDRYA 96OF6L/5SW6KB7B$D% D3IA4W5646646/96OA7XJC +D3KC.SCXJCCWENF6OF63W59%6A46WJCT3E0ZA%JC*QEYOAIECDZC:Y87WE1LE*KELQE 24LS8XB9RF4OPCW8FHZA1+9LZAZM81G72A60ZAIG70:6-R8V%6F46GL6257VW6+Q6Y*8HS8AL6C%6RG84S8SL6O57968CR4LHU28RZY3G.H61TU L2L7:92%QEY7G55U4VNZ3N20M949OMK5GLU27DDFP2KAKUP1J%N8*VIGU2GB1E$S13BA6E:NP8%FDXQG3'
  9.  
  10. print (json.dumps(cbor2.loads(CoseMessage.decode(zlib.decompress(b45decode(code[4:]))).payload), indent = 4))
RAW Paste Data