Skip to content

Conversation

gaurav10gg
Copy link

This PR simplifies the getKey function in the HKDF example by using object property shorthand for salt.

Before:
salt: salt

After:
salt

This change improves readability and follows modern JavaScript best practices, while keeping the code functionally identical.

### Summary
This PR updates the `hkdf.js` example in `web-crypto/derive-key/` to use JavaScript object property shorthand for `salt`.

### Before
```js
salt: salt
@gaurav10gg gaurav10gg requested a review from a team as a code owner September 11, 2025 15:35
@gaurav10gg gaurav10gg requested review from pepelsbey and removed request for a team September 11, 2025 15:35
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