Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions for generating a 48 character SHA-384 hash #2053

Open
Telos-sa opened this issue Oct 8, 2024 · 0 comments
Open

Suggestions for generating a 48 character SHA-384 hash #2053

Telos-sa opened this issue Oct 8, 2024 · 0 comments
Labels

Comments

@Telos-sa
Copy link

Telos-sa commented Oct 8, 2024

Question

For our back-matter resources in OSCAL models, we have been generating SHA-384 hashes of files for the hash objects. We haven't been able to get the resulting hash to be 48 characters with this algorithm. The validation constraints require SHA-384 hashes to be exactly 48 characters. We are currently utilizing the the hashlib package from the python standard library, which generates a 96 character SHA-384 hash. We were wondering if this might be an incorrect regular expression used in validation, or if not, if you had any suggestions for generating a 48 character SHA-384 hash.
Screenshot 2024-09-24 at 3 51 58 PM
Screenshot 2024-10-08 at 3 50 25 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant