How can I encrypt xml file on server side by asp?

  • HI, everybody:

    I have a windows server and a asp website.
    I want to encrypt my xml file on server side by asp with aspexec.dll(a component that execute the windows program by asp).

    I can operated makepano or encrypt "* droplet.bat" by asp with aspexec.dll befor krpano 1.16.9,
    when krpano upgraded to 1.19.x, I just operate makepano but don't encrypt. Why?

    Would you mind give me some good suggestions? thank you very much!

    5 Mal editiert, zuletzt von BH7NLJ (23. Mai 2017 um 13:27)

  • Thank you very much, reza_shnia!

    I mean...
    In krpano 1.16.9 and earlier version, there are tow programs, such as "kmakemultires.exe" and "kencrypt.exe".
    I can operated all droplet.bat by asp with aspexec.dll [include "MAKE PANO (MULTIRES) droplet.bat" and "ENCRYPTXML.bat"],

    In krpano 1.19.x there are tow programs too, such as "krpanotools32.exe" and "krpanotools64.exe", they are the same function actually .
    So I just operate the droplet.bat for makepano [MAKE PANO (MULTIRES) droplet.bat] but don't the droplet.bat for encrypt [ENCRYPT XML droplet.bat] by asp with aspexec.dll . in other words, I can make panos but don't encrypt xml files.

    This is my code sample by asp(in krpano 1.19.x):

    1, for make panos

    Code
    <%  
    dim aspexe,strResult  
    set aspexe  = server.createObject("aspexec.execute")  
    aspexe.application = "full\path\to krpanotools\MAKE PANO (MULTIRES) droplet.bat "  
    aspexe.parameters = "full\path\to myproject\panoroma.jpg"  
    aspexe.showwindow = true  
    response.write("try to running the program:"&aspexe.application&"<br>")  
    strResult = aspexe.ExecuteWinApp  
    response.write(strResult) 
    %>

    the Result for make panos are "Ok"


    2, for encrypt

    Code
    <%  
    dim aspexe,strResult  
    set aspexe  = server.createObject("aspexec.execute")  
    aspexe.application = "full\path\to krpanotools\ENCRYPT XML droplet.bat "  
    aspexe.parameters = "full\path\to myproject\tour\tour.xml"  
    aspexe.showwindow = true  
    response.write("try to running the program:"&aspexe.application&"<br>")  
    strResult = aspexe.ExecuteWinApp  
    response.write(strResult) 
    %>

    the Result for encrypt is "Not"


    I need the solution for ENCRYPT my xml file.

    Regards

    10 Mal editiert, zuletzt von BH7NLJ (23. Mai 2017 um 13:51)

  • Hi, reza_shnia

    do you think my codes are correct?


    the $return_var=1

    but when I use the output codes by php to running in the CMD, that is OK

    by the way
    I set disable_functions in php.ini like this:

    Code
    ; This directive allows you to disable certain functions for security reasons.
    ; It receives a comma-delimited list of function names.
    ; http://php.net/disable-functions
    disable_functions =


    and the IIS_IUSRS's security right for cmd.exe is "modify"

    6 Mal editiert, zuletzt von BH7NLJ (27. Mai 2017 um 21:37)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!