File hash SHA256, to upload to the server cloud. IM lost...

Yet once here, bother this time because I have a problem in Cryptography (which I've never really worked).

Well, I have to create a hash SHA256 from any file I want to download from a web server in the cloud, why? Because one of the parameters of the header that make me: x-filehash - A SHA256 hash of the file.

I googled on how to do it and I found two ways to perform this task, the first is the native (using the husha2.h library) and the second is a library called polarssl.

When I go through polarssl I noticed it's almost equal to the native form, so I finished it by selecting husha2.h.

The problem is that I don't know much about the 3 or 4 functions to create a SHA256 hash and less for an entire file. So I wanted to ask if a kind soul among most here, has a small example to use this library, but I at least to explain a bit what each of the settings and what would be the order in which you must use the functions.

Thank you and sorry for the inconvenience.

I tried the same sequence of calls you (I've hard-coded the HMAC key and input data) and I got consistent results every time. Here is my piece of code (I called once, the onInitSecurity() onMakeHash() several times and onEndSecurity() once) - I use emit message() to send to QML on my screen. Did you check the return codes from each call? I have SB_SUCCESS on them. Variables beginning _... are the ones class instance.

void ApplicationUI::onInitSecurity() {

    emit message("XXXX onInitSecurity");

    int returnCode = SB_SUCCESS; /* Return Code */

    /* Create SB Contexts */

    returnCode = hu_GlobalCtxCreateDefault(&_sbCtx);

    if (returnCode != SB_SUCCESS) {
        emit message("XXXX makeHash ERROR creating SB contexts:" + Utilities::intToHex(returnCode));
        return;
    } else {
        emit message("XXXX makeHash SUCCESS creating SB contexts");
    }

    returnCode = hu_RegisterSbg56(_sbCtx);
    if (returnCode != SB_SUCCESS) {
        emit message("XXXX makeHash ERROR calling hu_RegisterSbg56:" + Utilities::intToHex(returnCode));
        return;
    } else {
        emit message("XXXX makeHash SUCCESS calling hu_RegisterSbg56");
    }

    returnCode = hu_InitSbg56(_sbCtx);
    if (returnCode != SB_SUCCESS) {
        emit message("XXXX makeHash ERROR calling hu_InitSbg56:" + Utilities::intToHex(returnCode));
        return;
    } else {
        emit message("XXXX makeHash SUCCESS calling hu_InitSbg56");
    }
}

//...

void ApplicationUI::onMakeHash() {

    bool doHmac = true;

    QString input_data("1234567890");
    unsigned char messageDigest[SB_SHA256_DIGEST_LEN];
    unsigned char messageDigestHMAC[SB_HMAC_SHA256_256_TAG_LEN];
    unsigned char hmacKey[SB_HMAC_SHA256_256_TAG_LEN] = {0x1C, 0x85, 0xC9, 0xBB, 0x25, 0xBA, 0xFB, 0xE9,
                                                         0xFC, 0xE7, 0xB1, 0x3B, 0x9B, 0x53, 0x6F, 0x40,
                                                         0x79, 0x4F, 0x13, 0x3B, 0x60, 0x96, 0xF7, 0x44,
                                                         0x0B, 0x62, 0x39, 0xFB, 0xCA, 0x4A, 0xA3, 0xB6
                                                        };

    emit message("XXXX onMakeHash:" + input_data + " (" + QString::number(input_data.length()) + ")");

    /* Initialize variables */

    int returnCode = SB_SUCCESS; /* Return Code */

    QByteArray input_bytes = input_data.toUtf8();
    unsigned char* hash_input = reinterpret_cast(input_bytes.data());

    if (doHmac) {
        returnCode = hu_HMACSHA256Begin(SB_HMAC_SHA256_256_TAG_LEN, hmacKey, NULL, &_hmacContext, _sbCtx);
        if (returnCode != SB_SUCCESS) {
            emit message("XXXX makeHash ERROR initialising HMAC-SHA-256 context:" + Utilities::intToHex(returnCode));
            return;
        } else {
            emit message("XXXX makeHash SUCCESS initialising HMAC-SHA-256 context");
        }

        /* Hash Message */

        returnCode = hu_HMACSHA256Hash(_hmacContext, (size_t) input_bytes.length(), hash_input, _sbCtx);
        if (returnCode != SB_SUCCESS) {
            emit message("XXXX makeHash ERROR creating HMAC:" + Utilities::intToHex(returnCode));
            return;
        } else {
            emit message("XXXX makeHash SUCCESS creating HMAC");
        }

        /* Complete HMAC-SHA-256 Hashing */

        returnCode = hu_HMACSHA256End(&_hmacContext, SB_HMAC_SHA256_256_TAG_LEN, messageDigestHMAC, _sbCtx);
        if (returnCode != SB_SUCCESS) {
            emit message("XXXX makeHash ERROR completing HMAC:" + Utilities::intToHex(returnCode));
            return;
        } else {
            QString digest;
            for (int i = 0; i < SB_HMAC_SHA256_256_TAG_LEN; ++i) {
                digest.append(QString("%1").arg(QString::number((uint)messageDigestHMAC[i], 16), 2, QChar('0')));
            }
            emit message("XXXX makeHash SUCCESS completing HMAC");
            emit message("XXXX HMAC = " + digest);
        }
    } else {
//...
}

//...

void ApplicationUI::onEndSecurity() {
    emit message("XXXX onEndSecurity");
    hu_GlobalCtxDestroy(&_sbCtx);
}

Tags: BlackBerry Developers

Similar Questions

  • I can't delete some files that I uploaded to the server. What should I do?

    I can't delete some files that I uploaded to the server. I get a notice: FTP an error occurred - cannot delete the PDF download server folder. Operation failed. The directory is not empty, or there may be a permission problem.

    What should I do?

    Try to delete the files in your folder first.

    If there is a permissions problem on the server that you cannot delete files, you need to contact your Site Administrator (if you have one) or your Web hosting provider.

    Nancy O.

  • Update of Muse CC 2014.3 still have FTP upload problem: the server responding is not in time, FTP is not supported on this server [connection has expired after 15001 millseconds.] I have no problem with CC 2014. Can you suggest what I should do?

    Update of Muse CC 2014.3 still have FTP upload problem: the server responding is not in time, FTP is not supported on this server [connection has expired after 15001 millseconds.] I have no problem with CC 2014. Can you suggest what I should do?

    Hello.

    Today, I had the opportunity to work with a user of Muse with the same problem after you perform the troubleshooting steps in the post above we decided to communicate with the host.

    Later, I learned to know that host IP of the user of Muse and they managed to unlock and muse began to connect to the FTP host.

    I have another host scenario suggests Muse to add user : 21 to the FTP address and then Muse was able to connect.

    For example ftp.domain.com:21

    Please try the suggestion 2 above and let me know if it works.

    Concerning

    Vivek

  • With the help of AUSST - latest updates of Adobe CC 2014 are not uploaded to the server - how to solve this problem?

    With the help of AUSST - latest updates of Adobe CC 2014 are not uploaded to the server - how to solve this problem?

    I tried both incremental and train to do a fresh install (. / AdobeUpdateServerSetupTool - root = "/ serverroot/updates / Adobe / CS '-fee)

    If anyone can answer this - please let me know.

    Hi Mark,

    Try to refresh the web server and run the AUSST with cool switch. In addition, please make sure that you have enough disk space available in the location of the server.

    Thank you

    Ashish

  • How to share files uploaded in the creative cloud with other members of creative cloud?

    How to share files uploaded in the creative cloud with other members of creative cloud?

    Should be easy.  Try this...

    1. In thumbnail view, click the small triangle (pointing down) in the lower right corner of the asset you want to share.
    2. On the blue icon toolbar that appears, click on the share icon (the third icon from the left, just to the right of the trash icon). The sharing dialog box should appear.
    3. In the sharing dialog box, enter the e-mail address of the person with whom you want to share assets, then click on the button send an email - it will receive an email with a link to your assets. OR
    4. You can also copy a link to the asset and paste that in your own e-mail client if you wish.  To do this, click on the link icon (looks like a 'chain' and to the right of the icon to email "envelope")-then click on the button, copy the link.

    Note that stock options are not available if your asset is set to 'Private' - you can control if an asset can be seen (or downloaded) by others by clicking the control Public/private (green or red icon "lock").

    You can also access the same controls hand, if you click on the file to see him score a point (you can do display thumbnails or list view); Click on the share icon near the top right of the window of the browser (to the right of the name of the asset).

    Hope that helps.

  • Video uploads to the creative cloud but can not open it? And wrote of zero byte

    Video uploads to the creative cloud but can not open it? And wrote of zero byte

    You download the file using file synchronization or the use of the active site CC to https://assets.adobe.com? Which shows Details Panel? It should show the size.

    For example:

  • FRM-92100: your connection to the server has been lost

    Dear all,

    Please note that I am not able to run at the request of a particular State:

    The coming of the error is FRM-92100: your connection to the server has been lost

    where as another user is able to take this particular report.

    Our DBA had tried to apply the ATG RUP7 patch on a same server different mount point.

    Would this had created problems... ?

    Please update...

    Thanks in advance...

    Hello

    where as another user is able to take this particular report

    Run the report for the connection of users who have problems of client computer users who are not having questions and check.

    Concerning

  • Voiceover plays not once uploaded to the server

    I have a voiceover in animation that is triggered by a button my film. He plays very well locally but once all files are uploaded to a server, it does not play. I use mp3 and ogg formats. I have two other sound effects that are the same size and are treated in the same way that work very well.

    It's working now! Turned out be the way which I wondering the promotion of the file... typical user :-) error

    Thank you!

  • Not able to load files that have been uploaded to the site

    I was totally stumped by a problem, I'll have and think that the answer lies perhaps with Dreamweaver.

    Recently, I lost files on a hard drive crash which were important pages on my site. I want to update so I could upload them to the site for the work of thought. After download them on my local site, Dreamweaver refuses to open, giving me several error messages prior to the closing.

    The message I receive when you attempt to change my downloaded file:

    (1) corrupt JPG data: premature end of the data segment.

    When I close this error message, I get:

    The JPG file structure invalid 2): two markers;

    After the closure of this one, I get:

    (3) the instruction at "0x77f5b2ab" referenced memory at "0 x 00000028. The memory could not be "read". Click on OK to terminate the program.

    Front Page open the same files without problem, but I'd prefer to work with Dreamweaver and not FP.
    The files are .asp, incidentally.

    The indices or help will be appreciated.

    > When I loaded the page in DW8, it crashed.

    > .asp files, are also

    a browser in offline mode will not get the coding ASP.

    Connect to the server via FTP.

    If dw indicates that JPEG files are corrupt then crashes - then suggest
    Open them (the images) and save it back into an image editor.

  • Upload to the server to Test (webdav, environment)

    I have been using VersionCue CS2 and GoLive CS2 for some time, and recently, I've upgraded to CS3.
    I started using Dreamweaver CS3 with VersionCue CS3. I have installed Dreamweaver to use WebDav interface to communicate with the VersionCue CS3.

    The problem I have is that when I try to upload local files to the server in test or production server, Dreamweaver tries to download the file and the directory "web content".
    For example, if I want to download, / index.html, it will try to download on "/web-content/index.html".

    Here is the log:

    / var/www/html/Web-Content / - error - failed to create the file remote/var/www/html/web-content. Access denied. The file exists may not, or there could be a permission problem. Make sure you have permission on the server and the server is properly configured.
    Web - content\index.html - cancelled by the user

    Activity of the incomplete file. 1 file (s) or folder (s) have not been filled.

    Files with errors: 1
    / var/www/html/Web-Content.


    How can I set the web content directory is the root of the document?

    Thanks in advance,

    KAZ O

    My intention was to have a VersionCue CS2-like environment: and the directory "web content". I wanted to have several other directories as 'documents '.
    It seems that to set up the document root, you must specify the "web content" under the document root, I created another project of webDAV for these directories 'documents '.
    Having two separate projects really sucks, but at least it can do what I want to do.

  • How can I get a file from canvas to display on the server?

    I created a simple slideshow of canvas in CC to animate.  I tested it to animate and in the option film Test browser Animate (Safari) and everything works perfectly.  Then, I followed the instructions in the files OAM CC export animate to Dreamweaver and Adobe Muse | Adobe Dreamweaver tutorials CC to import the OAM in Dreamweaver.  Everything worked fine in Dreamweaver.

    But when I downloaded the files on the remote server, the html file makes its appearance, but the OAM canvas file does not appear.

    The files on the server configuration is duplicated just as they were on the local site.  But still nothing from the OAM is showing on the site of the remote server.  Must something be done on the remote server to make it work correctly?

    Any suggestions that might need to be done to get the CAO of canvas to show on the remote server as it does on the local site?

    Thank you.

    You have a stray closing tag in your markup.  Fix this.

    Rotate text down, I see.  Download your animation assets.

    Nancy O.

  • Is it possible to save files on server from Adobe as a PDF file or must it saved on the server of the client?

    The application has a custom navigation that opens PDF files within the app currently, that files are stored on the server of the client, but the client wants to store files on the server from Adobe. Is this possible?

    Not directly through a DPS Server. You may be able to store in creative cloud and then use a sharing URL, well I'm not sure CC operating conditions allowed that.

    It is preferable that the client stores the files on their server.

    Neil

  • No reading slide video when uploaded to the server

    Hi all:

    I created a project that has two video clips embedded on two blades. When I saw it (F4) fine. When I saw it (f12), everything is always ok. When I publish and download on the production server, everything EXCEPT the video works as advertised. The issue can be viewed here , and then select me you see in the table of contents.

    I use 6.01.240 and you've looked at other posts without success.

    Any ideas?

    Ok.  Then the 404 error shows that the MP4 never made it into the folder designated on the server or the server is not configured to use MP4.  Whatever it is, you will need to get eyes on the server folder real everything first confirm the presence of the file here and if this is the case, then ask to server administrator to find out why MP4s are not served.

  • Page that is uploaded to the server is different from the preview in the browser to Dreamweaver

    Hi, I have a few questions.  Anyone happen to know why my home page is different in Dreamweaver when I saw in the browser, then it does when I download the page on the server?  http://www.iewaterkeeper.org/  I see a join our mailing list button is intact when I saw in the browser but is not where when I discovered the page downloaded from the server.  Other strange things have been going with Dreamweaver today as I have no absolute position a div in it is held and all the typography on my homepage looks very blurred in Dreamweaver but looks clearer when it is transferred to the server.  Anyone know what is happening?  Any help would be greatly appreciated.  .... Could this be a virus?

    You do not have a class called "facebookmailinglist" in your css file its called 'mailing list '.

    If you need to change this:

    to do this:

  • Flash will not play when uploaded to the server

    Hello

    Have a website with 2 small pieces of flash - they play when I click on PLAY in dreamweaver, but will not play when I use an excerpt or when I downloaded the same site. The site is http://www.inzywinzy.ie/

    There should be a spider going up and down a Web next to the Panel and a picture in the picture.

    The code is:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    Inzy Winzy < title > < /title >

    < style type = "text/css" >

    <!--

    {body

    background-color: #FFFFFF;

    text-align: center;

    margin: 0px;

    padding: 0px;

    background-repeat: repeat;

    background-image: url(images/web_backgrounds/web_blue.jpg).

    }

    {#content_index}

    margin-top: 0px;

    padding-top: 0px;

    border: 1px solid #FFFFFF;

    background-repeat: no-repeat;

    height: 600px;

    background-image: url(images/index_background.jpg);

    width: 940px;

    left padding: 8px;

    }

    {#inzy_flash}

    margin-top: 0px;

    padding-top: 0px;

    height: 489px;

    width: 160px;

    float: left;

    }

    {#frame_flash}

    top of the margin: 284px;

    padding-top: 0px;

    height: 204px.

    width: 200px;

    float: right;

    padding-right: 165px;

    margin-bottom: 110px;

    padding-left: 173px;

    }

    : root {overflow - y: scroll ;}

    ->

    < / style >

    < link href = "css/css.css" rel = "stylesheet" type = "text/css" / > "

    < script src = "file:///Macintosh HD/Users/karenmcmorrow/Scripts/AC_RunActiveContent.js" type = "text/javascript" > < / script >

    < script type = "text/javascript" >

    <!--

    function MM_preloadImages() {//v3.0

    var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();

    var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

    If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

    }

    function MM_swapImgRestore() //v3.0 {}

    var i, x = offline. MM_sr; for (i = 0; a & & I <.) Length & & (x = a [i]) & & x.oSrc; i ++) x.src = x.oSrc;

    }

    function MM_findObj (n, d) {//v4.01

    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}

    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}

    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];

    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);

    If (! x & & d.getElementById) x = d.getElementById (n); Return x;

    }

    function MM_swapImage() {//v3.0

    var i, j = 0, x, a = MM_swapImage.arguments; document. MM_sr = new Array; for (i = 0; i <(a.length-2); I += 3).

    If ((x = MM_findObj (a [i]))! = null) {document. MM_sr [j ++] = x; if(!x.oSrc) x.oSrc = x.src; x.SRC = a [i + 2] ;}

    }

    ->

    < /script >

    < style type = "text/css" >

    <!--

    a {}

    are-family: Georgia, Times New Roman, Times, serif;

    -font size: 15px;

    color: #FFFFFF;

    }

    a: link {}

    text-decoration: none;

    }

    a: visited {}

    text-decoration: none;

    color: #FFFFFF;

    }

    a: hover {}

    text-decoration: none;

    color: #000033;

    }

    a: active {}

    text-decoration: none;

    color: #FFFFFF;

    }

    ->

    < / style >

    < / head >

    < body onload = "MM_preloadImages ('images/panneau/swedish_moccasins_roll.jpg','images/panneau/sh op_roll.jpg','images/signpost/gallery_roll.jpg','images/signpost/about_inzy_roll.jpg','ima ges/signpost/contact_us_roll.jpg')" >

    < name meta = "description" content = "Inzy Winzy Swedish moccasin for babies and children are perfect to keep those tiny feet warm and comfortable." Soles anti-slip and machine washable 100% cotton leather make it easy for parents to deal with too! "/ >

    < name meta = "keywords" content = "baby, babies, kids, shoes, socks, loafers, Sweden, Swedish, cotton, washable clothes, baptism, baby gift." / > "

    < div id = 'wrapper' >

    < div id = "header" > < / div >

    < div id = "content_index" >

    < div id = "signpost" >

    "< div id ="swedish_moccasins"> < a href =" pages/swedish_moccasins.html"onmouseover =" MM_swapImage ("Swedish","' images/signpost/swedish_moccasins_roll.jpg',1)" MM_swapImgRestore "" > < img src="images/signpost/swedish_moccasins.jpg" alt = "Swedish moccasins" name = "Swedish" width = "240" height = "100" border = "0" id = "Swedish" / > < /a > < / div > "

    "< div id = 'shop' > < a href =" pages/shop.html"onmouseover =" MM_swapImage ('boutique', ",'images/signpost/shop_roll.jpg',1)" MM_swapImgRestore "" > < img src="images/signpost/shop.jpg" alt = name of the 'Boutique' = 'Boutique' width = "240" height = "71" border = "0" id = "shop" / > < /a > < / div > "

    "< div id ="photo_gallery"> < a href =" pages/gallery.html"onmouseover =" MM_swapImage ('gallery', ",'images/signpost/gallery_roll.jpg',1)" MM_swapImgRestore "" > < img src="images/signpost/gallery.jpg" alt = "Photo Gallery" name = "Gallery" width = "240" height = "86" border = "0" id = "Gallery" / > < /a > < / div > "

    "< div id ="about_inzy"> < a href =" pages/about_inzy.html"onmouseover =" MM_swapImage ('subject', ",'images/signpost/about_inzy_roll.jpg',1)" MM_swapImgRestore "" > < img src="images/signpost/about_inzy.jpg" alt = "Subject Inzy" name = 'about' width = "240" height = "70" border = "0" id = "about" / > < /a > < / div > "

    "< div id ="contact"> < a href =" pages/contact_us.html"onmouseover =" MM_swapImage ('contact', ",'images/signpost/contact_us_roll.jpg',1)" MM_swapImgRestore "" > < img src="images/signpost/contact_us.jpg" alt = "Contact us" name = "contact" width = "240" height = "142" border = "0" id = "contact" / > < /a > < / div > "

    < / div >

    < div id = "inzy_flash" >

    < script type = "text/javascript" >

    AC_FL_RunContent ('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0.28, 0', 'wid th', ' 150 ', 'height', '400',' title',' Inzy winzy spider ',' src ',' flash/inzy pluginspage ', ' quality ',' high ', ' ','e http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash movi ',' flash/inzy ',''); End AC code

    < /script > < noscript > < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase =" " http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=9, 0,28,0 "width ="150"height ="400"title ="Inzy winzy spider"> "

    < param name = "movie" value = "flash/inzy.swf" / > "

    < param name = "quality" value = "high" / >

    < embed src = "flash/inzy.swf" quality = "high" pluginspage =" " http://www.Adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"type =" application/x-shockwave-flash"width ="150"height ="400"> < / embed > "

    < / object > < / noscript >

    < / div >

    < div id = "frame_flash" >

    < script type = "text/javascript" >

    AC_FL_RunContent ('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0.28, 0', 'wid th', '195', 'height', ' 200 "," accesskey"", m ', "tabindex", '20', 'title', "Loafers 'src'", flash / moccasin pluginspage ', ' quality ',' high ', ' ',' http://www.adobe.com/shockwave/download/download .cgi? ") P1_Prod_Version = ShockwaveFlash ',' movie ',' flash/moccasin'); End AC code

    < /script > < noscript > < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase =" " http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=9, 0,28,0 "width ="195"height ="200"accesskey ="m"tabindex ="20"title ="Moccasins"> "

    < param name = "movie" value = "flash/moccasin.swf" / > "

    < param name = "quality" value = "high" / >

    < embed src = "flash/moccasin.swf" quality = "high" pluginspage =" " http://www.Adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"type =" application/x-shockwave-flash"width ="195"height ="200"> < / embed > "

    < / object >

    < / noscript > < / div >

    < / div >

    < div id = "footer" >

    < table width = "950" height = "66" border = "0" >

    < b >

    < td width = "462" height = "29" > < div align = "right" > < span class = "footer" > phone + 353 (0) 87 127 587 </span > < span class = 'footer' > 4 </span > < / div > < table >

    < td width = "50" > < table >

    < td width = '424' class = 'footer' > < div align = "left" > Email < a href = 'mailto:info & #64; inzywinzy.ie' > info & #64; inzywinzy.ie < /a > < / div > < table >

    < /tr >

    < b >

    < td colspan = "3" > < div align = "center" class = "footersmall" > copyright & copy; 2008 Hibernia Designs Ltd t / a Inzy Winzy.   All rights reserved.  Terms and Conditions. < / div > < table >

    < /tr >

    < /table >

    < / div >

    < / div >

    < / body >

    < / html >

    Any help would be appreciated with gratitude!
    Thank you
    Karen

    The first thing is to correct the path to the file: "AC_RunActiveContent.js" is the current path is your hard disk, so you must download the file js AC_Run on the server, medium the easiest is to put it in the same folder as the html code path should then be:

Maybe you are looking for