Open
Conversation
1Helpmeout3
suggested changes
Jun 1, 2024
| var hash = CryptoJS.MD5("Message"); | ||
| SHA-1 | ||
| The SHA hash functions were designed by the National Security Agency (NSA). SHA-1 is the most established of the existing SHA hash functions, and it's used in a variety of security applications and protocols. Though, SHA-1's collision resistance has been weakening as new attacks are discovered or improved. | ||
| var hash = CryptoJS.SHA1("Message"); |
There was a problem hiding this comment.
Suggested change
| var hash = CryptoJS.SHA1("Message"); | |
| var hash = CryptoJS.SHA1("Message") // Parse and stringify a UTF-8 string | |
| var words = CryptoJS.enc.Utf8.parse("Hello, World!"); | |
| var utf8 = CryptoJS.enc.Utf8.stringify(words); | |
| // Parse and stringify a UTF-16 string | |
| var words = CryptoJS.enc.Utf16.parse("Hello, World!"); | |
| var utf16 = CryptoJS.enc.Utf16.stringify(words); | |
| // Parse and stringify a UTF-16LE string | |
| var words = CryptoJS.enc.Utf16LE.parse("Hello, World!"); | |
| var utf16le = CryptoJS.enc.Utf16LE.stringify(words); | |
| console.log("Encoded and decoded successfully. My favorite: Peacefully!"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.