Skip to content

Commit bf4b626

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines 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)