Announcement

Collapse
No announcement yet.

How can I make a drm in the Autoplay Media Studio software?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I make a drm in the Autoplay Media Studio software?

    Hello guys... I am newbie ... So forgive me for my questions

    Please and Please and Please Help me: How can I make a drm in the Autoplay Media Studio software ? DRM is a special player for playing a movie in my own format, which I have to create a solution for encryption with a special format and a player to play it ...

    I can encrypt a video file to bass 64 or blow fish ... My problem is how to encrypt a little , little of file at a time and then play it live (Stream)? This problem is really a strong barrier for me ...

    And is there a dll file for this ?!

    Thanks for every way

    Thank a lot Good Luck

  • #2
    best idea don't even do this in AMS as it's source is fully readable and can be patched to dump all it's content.
    Plugins or Sources MokoX
    BunnyHop Here

    Comment


    • #3
      Originally posted by kingzooly View Post
      best idea don't even do this in AMS as it's source is fully readable and can be patched to dump all it's content.
      Thank you very much ... but I do not have a problem with the source code, I intend to do this to understand the power of Autoplay (in general, I have a solution for the source code)

      Comment


      • #4
        There is no solution the way Lua works your source code will always be decompiled, I been a member for AMS for a very long time, and I with others have looked in to many ways to do this, soon as your code in memory to run it's done for, don't use AMS for anything that you want to protect this would include any DMR, but you can do encryption many ways.

        I use a 3ed party tool that supports cli to do things as lua isn't going to be handling it. I encrypt with AES

        AES Crypt is an advanced file encryption utility that integrates with the Windows shell or runs from the Linux command prompt to provide a simple, yet powerful, tool for encrypting files using the Advanced Encryption Standard (AES). A Java library is also available for developers using Java to read and write AES formatted files.
        Plugins or Sources MokoX
        BunnyHop Here

        Comment


        • #5
          As I mentioned above, dump source code is not important to me, I just want to create a drm with autoplay ...

          But for the software you introduced, I just want to create a dedicated player for a specific format that I created and encrypted myself ... and I know the encryption method ... (via Blowfish and Base 64)


          Thank a lot

          Comment


          • #6
            Originally posted by Sina Dehghani View Post
            As I mentioned above, dump source code is not important to me, I just want to create a drm with autoplay ...

            But for the software you introduced, I just want to create a dedicated player for a specific format that I created and encrypted myself ... and I know the encryption method ... (via Blowfish and Base 64)


            Thank a lot
            Then just use the blowfish decrypt and unencode it from base64, both of them are not really encryption.

            This is the encode and decode I use as the plugins in AMS seem to don't encode and decode same as others, this one match's
            most others.

            for the blow fish look up the Crypto functions.

            Code:
            -- character table string
            local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz0123456789+/';
            
            -- encoding
            function enc(data)
            return ((data:gsub('.', function(x)
            local r, b= '',x:byte()
            for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
            return r;
            end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
            if (#x < 6) then return '' end
            local c=0
            for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
            return b:sub(c+1,c+1)
            end)..({ '', '==', '=' })[#data%3+1])
            end
            
            -- decoding
            function dec(data)
            data = string.gsub(data, '[^'..b..'=]', '')
            return (data:gsub('.', function(x)
            if (x == '=') then return '' end
            local r,f='',(b:find(x)-1)
            for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end
            return r;
            end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
            if (#x ~= 8) then return '' end
            local c=0
            for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end
            return string.char(c)
            end))
            end
            function CBL:About(s_about)
            if s_about == 'Car_Boot' then
            DialogEx.Show("About");
            end
            end
            Plugins or Sources MokoX
            BunnyHop Here

            Comment


            • #7
              Originally posted by kingzooly View Post

              Then just use the blowfish decrypt and unencode it from base64, both of them are not really encryption.

              This is the encode and decode I use as the plugins in AMS seem to don't encode and decode same as others, this one match's
              most others.

              for the blow fish look up the Crypto functions.

              Code:
              -- character table string
              local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz0123456789+/';
              
              -- encoding
              function enc(data)
              return ((data:gsub('.', function(x)
              local r, b= '',x:byte()
              for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
              return r;
              end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
              if (#x < 6) then return '' end
              local c=0
              for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
              return b:sub(c+1,c+1)
              end)..({ '', '==', '=' })[#data%3+1])
              end
              
              -- decoding
              function dec(data)
              data = string.gsub(data, '[^'..b..'=]', '')
              return (data:gsub('.', function(x)
              if (x == '=') then return '' end
              local r,f='',(b:find(x)-1)
              for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end
              return r;
              end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
              if (#x ~= 8) then return '' end
              local c=0
              for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end
              return string.char(c)
              end))
              end
              function CBL:About(s_about)
              if s_about == 'Car_Boot' then
              DialogEx.Show("About");
              end
              end
              I think you do not understand what I mean ... I do not just have the problem of encryption and encryption I have a problem how to play a video file without encryption ... or better to say live encryption with the development of face video file Take ...

              Comment


              • #8
                I do understand and to play anything in the media player in AMS you will have to decrypt it, this is how other players also do it, they decrypt the video and then play it this is what you would have to do, since you know what you encreatyped it as you will have to decode and decrypt it.

                So I do understand and I replied to you, you will have decode you base64 and you will also have de-blowfish it.

                How you store it on the end users computer how it's been played will be up to you and what things you have to your hand, but you will have to decrypt it and the media player will play the none encrypted version.
                Plugins or Sources MokoX
                BunnyHop Here

                Comment


                • #9
                  Originally posted by kingzooly View Post
                  I do understand and to play anything in the media player in AMS you will have to decrypt it, this is how other players also do it, they decrypt the video and then play it this is what you would have to do, since you know what you encreatyped it as you will have to decode and decrypt it.

                  So I do understand and I replied to you, you will have decode you base64 and you will also have de-blowfish it.

                  How you store it on the end users computer how it's been played will be up to you and what things you have to your hand, but you will have to decrypt it and the media player will play the none encrypted version.
                  But in this method, the original file needs to be encrypted in one place, and thus the raw file is obtained by others ...

                  Comment


                  • #10
                    This is how you do it there is no other method, for any player to read a file it has to know what it is, and if your creating a DRM system then you have to let the end player have the file it reads, so you have to take the DRM away from it at that point, this is how a lot of people get the DRM removed from videos, this is why most videos now are online via a service, as you don't get the end file anymore to strip the DRM away, and then cleaver code in the app or browser checking if for known recorders ways are about, this is how it is, on the fly drm would mean sections of the video would be decrypted to ram/buffer for it to read, this isn't possible in AMS and pointless as you still have to code it in clear text so it would be easy to be recreated back as one video.

                    Your asking two much of AMS also there is a reason videos and dvds local can't be stopped been from been ripped, if you want to stop a video been stolen you would have to spend the kind of money netflix and alikes are doing and even tho they are losing a battel.

                    You can't play a file without it been decrypted for the player to play it.
                    Plugins or Sources MokoX
                    BunnyHop Here

                    Comment

                    Working...
                    X