Skip to content

fix(crypto): use crypto/rand for HMAC key generation [M3]#560

Merged
lakhansamani merged 1 commit intomainfrom
fix/m3-hmac-crypto-rand
Apr 4, 2026
Merged

fix(crypto): use crypto/rand for HMAC key generation [M3]#560
lakhansamani merged 1 commit intomainfrom
fix/m3-hmac-crypto-rand

Conversation

@lakhansamani
Copy link
Copy Markdown
Contributor

Summary

  • M3 (Medium): HMAC key used UUID instead of crypto/rand
  • Now generates 32 bytes from crypto/rand, hex-encoded

Test plan

  • Package compiles

HMAC keys were generated using UUID (which uses math/rand internally
for some implementations). Now uses crypto/rand for 32 bytes of
cryptographic randomness, hex-encoded.

Fixes: M3 (Medium)
@lakhansamani lakhansamani merged commit d249dda into main Apr 4, 2026
@lakhansamani lakhansamani deleted the fix/m3-hmac-crypto-rand branch April 4, 2026 11:40
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.

1 participant