最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Key Management: Hardcoded Encryption Key for chart.js - Stack Overflow

programmeradmin0浏览0评论

I facing issue related to "Key Management: Hardcoded Encryption Key" for chart.js api. We are using Fortify Scanning for security purpose. How to avoid the 'Hardcoded Encryption Key'.

After scanning we found the line of code that is hardcoded in chart.js. Is there any way to resolve this issue.

var axisType = helpers.getValueOrDefault(valueObj.type, key === 'xAxes' ? 'category' : 'linear');

I facing issue related to "Key Management: Hardcoded Encryption Key" for chart.js api. We are using Fortify Scanning for security purpose. How to avoid the 'Hardcoded Encryption Key'.

After scanning we found the line of code that is hardcoded in chart.js. Is there any way to resolve this issue.

var axisType = helpers.getValueOrDefault(valueObj.type, key === 'xAxes' ? 'category' : 'linear');
Share Improve this question asked Oct 9, 2019 at 11:15 SitansuSitansu 3,3278 gold badges37 silver badges61 bronze badges 1
  • 1 Besides the fact that Chart.js has no encryption related code at all in it (as far as I'm aware), that line of code is clearly not a hard-coded encryption key. So it's a false positive that you should report to the vendor. – timclutton Commented Oct 9, 2019 at 12:49
Add a ment  | 

1 Answer 1

Reset to default 5

After analysed the chart.js code file, we have found there is no hardcode encryption key . Key is variable name.

Hp fortify identified the word, 'key' as encryption key. These are not encryption key it is a variable name. Hence it is a false positive.

发布评论

评论列表(0)

  1. 暂无评论