User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Codec license key encryption

Wed Apr 08, 2015 1:46 am

Hi i bought VC-1 license key. I want to use it as an encryption method. I already know how to do the serial encryption method. Can anyone show me how to encrypt the raspberry pi to a codec encryption? Thanks! :mrgreen:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
jojopi
Posts: 3274
Joined: Tue Oct 11, 2011 8:38 pm

Re: Codec license key encryption

Wed Apr 08, 2015 2:58 am

expandables wrote:I already know how to do the serial encryption method.
Perhaps if you explain exactly what you mean by that, we will be better able to understand what you are now asking.

If you know how to do any kind of encryption, then changing the key should be trivial. Note that there is no point unless you have a way to keep the key secret.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Codec license key encryption

Wed Apr 08, 2015 3:20 am

i did this serial encryption and i want to know how can i do the same with the codec license

Code: Select all

#!/bin/bash
    CPUID=$(cat /proc/cpuinfo | awk '/Serial/ {print $3}' | tail -c 9)

    while [ $CPUID != "Put In The Number Here" ]; do
      sudo reboot
    done
:mrgreen:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Codec license key encryption

Wed Apr 08, 2015 8:33 am

Try this command
vcgencmd codec_enabled vc1
which returns "vc1=disabled" on an unlicenced RPi.


You should be able to use that in your trivial (and 100% insecure) script.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Codec license key encryption

Wed Apr 08, 2015 8:57 am

DougieLawson wrote:Try this command
vcgencmd codec_enabled vc1
which returns "vc1=disabled" on an unlicenced RPi.


You should be able to use that in your trivial (and 100% insecure) script.
Yes, but what is the point of that? This suggestion is pointless and even more insecure than the reading the serial number one.

A much better method would be one that checks the serial number properly, not through the /proc/cpuinfo method, and checks that against a hash.

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Codec license key encryption

Wed Apr 08, 2015 9:05 am

But that needs coding to read the GPU mailbox which is probably way outside the abilities of the OP.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Codec license key encryption

Wed Apr 08, 2015 9:52 am

Ok, so stick with the serial number method and forget the codec one which costs money. Both can be bypassed by a trivial bit of work anyway.

Return to “Beginners”