-
Notifications
You must be signed in to change notification settings - Fork 2
CD Key Decoding
David edited this page Oct 5, 2018
·
1 revision
-
KeyDecoder
- the base key decoding class-
KeyDecoder.get(key)
- returns a KeyDecoder suitable for decoding the specified key -
decode()
- decodes the key and sets the decoder's attributes (product, public, private)- Returns TRUE if decoding was successful.
-
get_hash(client_token, server_token)
- returns the 20-byte hash of the CD key to be sent to the BNCS server -
get_product_name()
- returns the full name of the product the key is associated with -
get_product_code()
- returns the 4-digit product code the key is associated with -
public
- the key's public value -
product
- the key's product value (which product it goes with) -
private
- the key's private value
-
Keys are decoded based on their length.
https://github.com/Davnit/bncs.py/blob/master/bncs/hashing/cdkeys.py