Page 1 of 1

Codec license key encryption

Posted: Wed Apr 08, 2015 1:46 am
by expandables
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:

Re: Codec license key encryption

Posted: Wed Apr 08, 2015 2:58 am
by jojopi
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.

Re: Codec license key encryption

Posted: Wed Apr 08, 2015 3:20 am
by expandables
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:

Re: Codec license key encryption

Posted: Wed Apr 08, 2015 8:33 am
by DougieLawson
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.

Re: Codec license key encryption

Posted: Wed Apr 08, 2015 8:57 am
by rpdom
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.

Re: Codec license key encryption

Posted: Wed Apr 08, 2015 9:05 am
by DougieLawson
But that needs coding to read the GPU mailbox which is probably way outside the abilities of the OP.

Re: Codec license key encryption

Posted: Wed Apr 08, 2015 9:52 am
by rpdom
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.