Bitcoin Forum
June 17, 2024, 09:31:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to find hexkey from checksum  (Read 129 times)
ahsanmirz (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 05, 2022, 12:49:00 PM
 #1

hi i have been tring to find hexkey from checksum found this code but there is something wrong can any one help and do some corrections its on python


Code:
import decora 
import sys
address = sys.argv[1]
switch = decora.decora(address, None)
rawkey = switch.read_key()
if rawkey == "LEVI":
 print("Switch is not in pairing mode - hold down until green light flashes\n")
 else: key = int(ord(rawkey[0])) << 24 | int(ord(rawkey[1])) << 16 | int(ord(rawkey[2])) << 8 | int(ord(rawkey[3]))
print(hex(key))
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
October 05, 2022, 02:47:25 PM
Merited by hugeblack (4), BlackHatCoiner (2), ABCbits (1)
 #2

hi i have been tring to find hexkey from checksum found this code but there is something wrong can any one help and do some corrections its on python

Code:
 print("Switch is not in pairing mode - hold down until green light flashes\n")


Could you tell clearly what do you want to accomplish? Checksum of what? Base58 decoded address or WIF?
The code you showed does not make really any sense as is provided completely out-of-scope.
seoincorporation
Legendary
*
Offline Offline

Activity: 3192
Merit: 2978


Top Crypto Casino


View Profile
October 05, 2022, 08:37:47 PM
Last edit: October 05, 2022, 11:32:15 PM by seoincorporation
 #3

hi i have been tring to find hexkey from checksum found this code but there is something wrong can any one help and do some corrections its on python


Code:
import decora 
import sys
address = sys.argv[1]
switch = decora.decora(address, None)
rawkey = switch.read_key()
if rawkey == "LEVI":
 print("Switch is not in pairing mode - hold down until green light flashes\n")
 else: key = int(ord(rawkey[0])) << 24 | int(ord(rawkey[1])) << 16 | int(ord(rawkey[2])) << 8 | int(ord(rawkey[3]))
print(hex(key))

Using a Bluetooth switches software to find an hexkey from the checksum is the most random thing i have ever seen in this forum. So lets talk about python-decora:

Example use
This will connect and turn on the light
Code:
import decora

switch = decora.decora("00:21:4d:00:00:01", key="key")
switch.connect()
switch.on()
This will set the light to 50% intensity

Code:
switch.set_brightness(50)
And turn the lights off

Code:
switch.off()

Source:
https://github.com/mjg59/python-decora

If you want to learn how to encrypt or decrypt an hexkey, you can start here:
https://secretscan.org/PrivateKeyHex

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!