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

[Cosmos] Use local digest instead of crypto-hash #5493

Merged
merged 1 commit into from
Oct 10, 2019
Merged

[Cosmos] Use local digest instead of crypto-hash #5493

merged 1 commit into from
Oct 10, 2019

Conversation

joheredi
Copy link
Member

@joheredi joheredi commented Oct 9, 2019

Addresses problem 1) discussed in #5023, fixing Cosmos in Edge.

This PR is changes the hashing algorithm previously used SHA1 fro SHA256 which is supported by Edge and all other browsers. Also removing the dependency on crypto-hash

@@ -0,0 +1,7 @@
export function encodeUTF8(str: string): Uint8Array {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future we may want to extract this function to @azure/core-crypto since this overlaps with keyvault

@southpolesteve
Copy link
Contributor

Approved! Some minimal browser test would be great, but I don't want it to block. We can sort out a browser testing strategy in a different PR.

@joheredi
Copy link
Member Author

Approved! Some minimal browser test would be great, but I don't want it to block. We can sort out a browser testing strategy in a different PR.

I created issue #5506 to enable Browser tests for Cosmos

@joheredi joheredi merged commit 32c4de6 into Azure:master Oct 10, 2019
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.

2 participants