Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf4b626

Browse filesBrowse files
committed
Note behavior change of RenderSVG._make_id to SHA512 #18192
1 parent 4f0b353 commit bf4b626
Copy full SHA for bf4b626

File tree

1 file changed

+11
-0
lines changed
Filter options

1 file changed

+11
-0
lines changed
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ID attribute of XML tags in SVG files now based on SHA512 rather than MD5
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
The `RenderSVG._make_id` method generates unique ID attributes for various
5+
XML tags in SVG files. This method previously used the first 10 characters of
6+
an MD5 hash. The `hashlib.md5` constructor is not available in Python on
7+
systems with Federal Information Processing Standards (FIPS) enabled.
8+
`RenderSVG._make_id` now uses the first 10 characters of an SHA512 hash. The
9+
general behavior of this method remains unchanged, though SVG files that
10+
would otherwise those saved with earlier versions of matplotlib, will have
11+
different ID attributes.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.