VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. hello, how can I convert these clearkeys to hexa, when converting it from base64 to hex it does not accept characters such as , - _ :

    which one should I replace with in order to convert them to hexa correctly

    Code:
    {"keys":[{"kty":"oct","k":"gTJACVEd4_8h6Q5S34CAdg","kid":"-qGVMAlCVmiFexrqS-takg"}],"type":"temporary"}
    this is the same clearkey
    Code:
    {"auth":"gTJ+CVEd4_:h6Q5S34C+dg","gen":",qGVM-lCVmiFexrqS,takg"}
    Last edited by tere1579; 23rd Aug 2022 at 16:20.
    Quote Quote  
  2. gTJACVEd4_8h6Q5S34CAdg is base64url encoded
    Replace '_' with '/' and replace '-' with '+' and add some padding characters '=' so that it is a multiple of 4.
    ie.
    Base64url: gTJACVEd4_8h6Q5S34CAdg
    Base64: gTJACVEd4/8h6Q5S34CAdg==
    Hex: 81324009511DE3FF21E90E52DF808076
    Quote Quote  
  3. Originally Posted by ElCap View Post
    gTJACVEd4_8h6Q5S34CAdg is base64url encoded
    Replace '_' with '/' and replace '-' with '+' and add some padding characters '=' so that it is a multiple of 4.
    ie.
    Base64url: gTJACVEd4_8h6Q5S34CAdg
    Base64: gTJACVEd4/8h6Q5S34CAdg==
    Hex: 81324009511DE3FF21E90E52DF808076

    thank you very much it helped me, in the case of ' : ' and ' , ' what symbols should I replace with, for example in this key

    Code:
    {"auth":"gTJ+CVEd4_:h6Q5S34C+dg","gen":",qGVM-lCVmiFexrqS,takg"}
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!