Skip to content

Change hash example to use SHA-256#242

Open
grahamc wants to merge 1 commit intojaraco:mainfrom
grahamc:patch-1
Open

Change hash example to use SHA-256#242
grahamc wants to merge 1 commit intojaraco:mainfrom
grahamc:patch-1

Conversation

@grahamc
Copy link

@grahamc grahamc commented Jan 15, 2026

With the previous md5 example, building and testing this package with FIPS fails on doctest:

809     >>> hash = hashlib.md5()
UNEXPECTED EXCEPTION: UnsupportedDigestmodError('[digital envelope routines] unsupported')

So I updated example to use hashlib.sha256 instead of hashlib.md5.

(ref our internal ticket DSP-63)

Closes #240

With the previous md5 example, building and testing this package with FIPS fails on doctest:

```
809     >>> hash = hashlib.md5()
UNEXPECTED EXCEPTION: UnsupportedDigestmodError('[digital envelope routines] unsupported')
```

So I updated example to use hashlib.sha256 instead of hashlib.md5.

(ref our internal ticket DSP-63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests fail when OpenSSL FIPS is enabled

1 participant