Using MD5 encryption in Generic JavaScript View


I’m trying to use the Generic Javascript View node to create a login screen for individuals using KNIME Server, The reason for this is that we want to have an added layer of security over and above KNIME Server login due to some sensitive data.

In order t create accounts, we’re using md5 to hash the users’ password using the md5.js script. While all works well locally, the script fails when running on the server. We’ve tries saving the file locally and referencing it locally, however we haven’t had any luck.

We’re loading the script as follows:

var html = '<html>'
html += '<head>'
html +='<meta name="robots" content="noindex, nofollow">'
html +='<script src=""></script>'
html +='<script type="text/javascript" src="js/login.js"></script>'
html +='<script type="text/javascript" src="C://Users/[user]/Desktop/md5.js"></script>'
html +='<script type="text/javascript" src="C://Users/[user]/Desktop/aes.js"></script>'
html +='</head>'

Thanks for any help,

Issue ended up being related to content security policy. Nothing to do with javascript.
Solved by adding the correct permissions


Thanks for posting your solution!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.