)]}'
{"examples/hashlib_new_insecure_functions.py":[{"author":{"_account_id":21420,"name":"Gage Hugo","email":"gagehugo@gmail.com","username":"ghugo"},"change_message_id":"086fd5659ffac55d7498e3589f94b3aca32a4903","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"hashlib.new(string\u003d\u0027test\u0027, name\u003d\u0027MD5\u0027)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"hashlib.new(\u0027sha256\u0027)"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"hashlib.new(\u0027SHA512\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"df6247ed_8c5fa70d","line":15,"range":{"start_line":13,"start_character":0,"end_line":15,"end_character":21},"updated":"2017-09-19 22:06:02.000000000","message":"Should these be part of this change? Are these considered insecure?","commit_id":"a079f648c32bab9bbb5aeade44640d81e08adfff"},{"author":{"_account_id":14758,"name":"Rajath Agasthya","email":"rajagast@cisco.com","username":"rajathagasthya"},"change_message_id":"ee0b76537208c47946e92b784ae1b5fb698ba826","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"hashlib.new(string\u003d\u0027test\u0027, name\u003d\u0027MD5\u0027)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"hashlib.new(\u0027sha256\u0027)"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"hashlib.new(\u0027SHA512\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf57530f_c868ef22","line":15,"range":{"start_line":13,"start_character":0,"end_line":15,"end_character":21},"in_reply_to":"df6247ed_8c5fa70d","updated":"2017-09-19 23:36:23.000000000","message":"No, this is just for testing valid functions. Scores are checked in the corresponding unit test to see that the plugin isn\u0027t flagging these statements. I probably should have added a comment here.","commit_id":"a079f648c32bab9bbb5aeade44640d81e08adfff"},{"author":{"_account_id":21420,"name":"Gage Hugo","email":"gagehugo@gmail.com","username":"ghugo"},"change_message_id":"32fa048f1e42c21fec80bb69187c2dd842bfc370","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"hashlib.new(string\u003d\u0027test\u0027, name\u003d\u0027MD5\u0027)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"# Test that plugin does not flag valid hash functions."},{"line_number":14,"context_line":"hashlib.new(\u0027sha256\u0027)"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"hashlib.new(\u0027SHA512\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bf57530f_11f74ef8","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":54},"updated":"2017-09-20 01:17:06.000000000","message":"Ah ok, thanks for clarifying this!","commit_id":"5925f060fcccc61c250cd8852eb96ad90c382791"}],"tests/functional/test_functional.py":[{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"ea76647c74fc3f92ca9a36a90626ca5685106c69","unresolved":false,"context_lines":[{"line_number":699,"context_line":"        self.check_example(\u0027unverified_context.py\u0027, expect)"},{"line_number":700,"context_line":""},{"line_number":701,"context_line":"    def test_hashlib_new_insecure_functions(self):"},{"line_number":702,"context_line":"        \"\"\"Test insecure hash functions created by hashlib.new()\"\"\""},{"line_number":703,"context_line":"        expect \u003d {"},{"line_number":704,"context_line":"            \u0027SEVERITY\u0027: {\u0027UNDEFINED\u0027: 0, \u0027LOW\u0027: 0, \u0027MEDIUM\u0027: 5, \u0027HIGH\u0027: 0},"},{"line_number":705,"context_line":"            \u0027CONFIDENCE\u0027: {\u0027UNDEFINED\u0027: 0, \u0027LOW\u0027: 0, \u0027MEDIUM\u0027: 0, \u0027HIGH\u0027: 5}"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f515b1d_523aac98","line":702,"range":{"start_line":702,"start_character":62,"end_line":702,"end_character":67},"updated":"2017-09-29 04:31:51.000000000","message":"For consistency use \u0027\u0027\u0027 like all other tests.","commit_id":"5925f060fcccc61c250cd8852eb96ad90c382791"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"ea76647c74fc3f92ca9a36a90626ca5685106c69","unresolved":false,"context_lines":[{"line_number":699,"context_line":"        self.check_example(\u0027unverified_context.py\u0027, expect)"},{"line_number":700,"context_line":""},{"line_number":701,"context_line":"    def test_hashlib_new_insecure_functions(self):"},{"line_number":702,"context_line":"        \"\"\"Test insecure hash functions created by hashlib.new()\"\"\""},{"line_number":703,"context_line":"        expect \u003d {"},{"line_number":704,"context_line":"            \u0027SEVERITY\u0027: {\u0027UNDEFINED\u0027: 0, \u0027LOW\u0027: 0, \u0027MEDIUM\u0027: 5, \u0027HIGH\u0027: 0},"},{"line_number":705,"context_line":"            \u0027CONFIDENCE\u0027: {\u0027UNDEFINED\u0027: 0, \u0027LOW\u0027: 0, \u0027MEDIUM\u0027: 0, \u0027HIGH\u0027: 5}"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f515b1d_92bee4fc","line":702,"range":{"start_line":702,"start_character":8,"end_line":702,"end_character":11},"updated":"2017-09-29 04:31:51.000000000","message":"For consistency use \u0027\u0027\u0027 like all other tests.","commit_id":"5925f060fcccc61c250cd8852eb96ad90c382791"}]}
