Activity Stream
48,167 MEMBERS
62497 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1.     
    #1
    Member
    Website's:
    intelligen2009.com

    Default DLMF - library for decrypting container files (rsdf, ccf, ncf and dlc)

    Hello,
    i like to present another minor project for application developers, particularly for download managers. some other download program coders developed files (called container files), which store the directlinks encrypted to prevent abuse. However many programs especially smaller ones have no algorithm to read these files, because the decryption is secret.
    i developed in cooperation with some other coders a all-in-one solution to decrypt these files securely and easy.
    In order to prevent mass-abusing - i ll not share a GUI or any kind of a end-user program, but these libraries with the corresponding interfaces.

    i ll not share the source code - under no circumstances! don't ask .!.

    Download (Linux, Windows): dlmf.zip
    the interface is written in delphi, but is COM-based

    Delphi: Widestring
    C++: BSTR*

    the Linux solution is not tested, cause i'm not familiar with this kind of system, just cross compiled

    Delphi:
    Code: 
    procedure(RSDFFile: Widestring; out Result: Widestring); stdcall; external 'DLMF.dll';
    VC++ (not tested)
    Code: 
    extern "C" __declspec(dllimport) __stdcall void RSDFToPlain(BSTR* RSDFFile, [out] BSTR* Result);
    C#
    Code: 
    [DllImport("DLMF.dll", EntryPoint = "RSDFToPlain", ExactSpelling = true, CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
            public static extern void RSDFToPlain([MarshalAs(UnmanagedType.BStr)]string RSDFFile, [MarshalAs(UnmanagedType.BStr)]out string Result);
    geskill Reviewed by geskill on . DLMF - library for decrypting container files (rsdf, ccf, ncf and dlc) Hello, i like to present another minor project for application developers, particularly for download managers. some other download program coders developed files (called container files), which store the directlinks encrypted to prevent abuse. However many programs especially smaller ones have no algorithm to read these files, because the decryption is secret. i developed in cooperation with some other coders a all-in-one solution to decrypt these files securely and easy. In order to prevent Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    Nice. But why use the library when implementing it is quite easy (http://www.superwayne.org/papers/ccf3/)?

    Just tried it, according to VS2010 it's not a valid COM component.

  4.     
    #3
    Member
    Website's:
    intelligen2009.com
    you miss-understood me, i'm using COM-based parameters no COM component, sorry. The link you provided is just a technique for 1 container, furthermore there is missing something AND this container format is discontinued.

    Delphi (original):
    Code: 
    function CCF30ToPlain(CCFFile: Widestring): Widestring; external 'DLMF.dll';
    C++ (maybe this works, but i'm not a c++ dev)
    Code: 
    void __stdcall  CCF30ToPlain(BSTR* result, BSTR* CCFFile);
    C# (maybe this works, but i'm not a c# dev)
    Code: 
    [DllImport("DLMF.dll", EntryPoint="CCF30ToPlain", CallingConvention=CallingConvention.StdCall)]
    public static extern string CCF30ToPlain(string CCFFile);

  5.     
    #4
    Respected Developer
    Ah I see. Still, these sort of file formats are easy to implement. Anyway, do you have a reference somewhere for the lib? I'd like to test the performance impact of .NET interop over C++.

    Edit:
    Your C# method is indeed the correct way (apart from string, should be StringBuilder in this case I think, don't know the delphi types).

    Edit2:
    Nope it's string .

    http://www.netcoole.com/delphi2cs/datatype.htm

  6.     
    #5
    Member
    Website's:
    intelligen2009.com
    Code: 
    [DllImport("DLMF.dll", EntryPoint="CCF30ToPlain", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Ansi)]
    public static extern string CCF30ToPlain(string CCFFile);
    hmmm, maybe you need to set the encoding => Ansi
    the parameter "CCFFile" is the file name "C:\mytestfile.ccf", not the file content

    EDIT:
    pls try this file: DLMF.dll i think i have a error in the calling convention...

  7.     
    #6
    Respected Developer
    Neither work. "External component has thrown an exception."

    Code: 
        class Program
        {
            [DllImport("DLMF.dll", EntryPoint = "CCF30ToPlain", CallingConvention = CallingConvention.StdCall)]
            public static extern string CCF30ToPlain(string CCFFile);
    
            static void Main(string[] args)
            {
                string file = Environment.CurrentDirectory + "\\Simpsons_Staffel_4_Komplett.rsdf";
                string data = CCF30ToPlain(file);
    
                Console.WriteLine(data);
                Console.ReadKey(true);
            }
        }
    Tried passing the string by reference but that didn't work either. But nevermind. I'll do the testing with Win32 interop instead.

  8.     
    #7
    Member
    Website's:
    intelligen2009.com
    for rsdf files you should use:

    Code: 
        class Program
        {
            [DllImport("DLMF.dll", EntryPoint = "RSDFToPlain", CallingConvention = CallingConvention.StdCall)]
            public static extern string RSDFToPlain(string RSDFFile);
    
            static void Main(string[] args)
            {
                string file = Environment.CurrentDirectory + "\\Simpsons_Staffel_4_Komplett.rsdf";
                string data = RSDFToPlain(file);
    
                Console.WriteLine(data);
                Console.ReadKey(true);
            }
        }
    i don't understand why u use 2 slashes here:
    Code: 
    string file = Environment.CurrentDirectory + "\\Simpsons_Staffel_4_Komplett.rsdf";
    
    // i would use it this way
    string file = Environment.CurrentDirectory + "\Simpsons_Staffel_4_Komplett.rsdf";

  9.     
    #8
    Respected Developer
    It's called escaping characters. The \ has a special meaning in most languages. I tried it on 3 ccf files before I tried the rsdf.

  10.     
    #9
    Member
    Website's:
    intelligen2009.com
    hmm.. okay did you tried the charset?
    Code: 
    [DllImport("DLMF.dll", EntryPoint="CCF30ToPlain", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Ansi)]
    public static extern string CCF30ToPlain(string CCFFile);
    
    [DllImport("DLMF.dll", EntryPoint = "RSDFToPlain", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Ansi)]
    public static extern string RSDFToPlain(string RSDFFile);

  11.     
    #10
    Respected Developer
    Ansi is assumed, there's no need to explicitly specify it. But yes I did try that. The problem is not with the interop since the exception comes from the dll. So something is wrong there or there's an issue with using string as data type.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding ip on vps container
    By masterb56 in forum Server Management
    Replies: 1
    Last Post: 20th Sep 2011, 02:43 AM
  2. OpenVZ Container
    By StabU2Dead in forum Webmaster Discussion
    Replies: 2
    Last Post: 22nd May 2011, 10:07 AM
  3. Installing GD Graphics Library or Imagick Image Library
    By RNBxBeatz in forum Webmaster Discussion
    Replies: 0
    Last Post: 13th May 2011, 09:49 AM
  4. How to install GD Graphics Library or Imagick Image Library?
    By Hillside in forum Technical Help Desk Support
    Replies: 2
    Last Post: 12th Dec 2010, 09:54 AM
  5. MSDN Library
    By BlaZe in forum General Discussion
    Replies: 0
    Last Post: 26th Mar 2010, 06:28 AM

Tags for this Thread

BE SOCIAL