CSharpVitamins.ShortGuidv2.0.0
Copy SHA256
License: unknown
Published: over 4 years ago
A convenience wrapper struct for dealing with URL-safe Base64 encoded globally unique identifiers (GUID),
making a shorter string value (22 vs 36 characters long).
As of version 2.0.0, `ShortGuid` performs a sanity check when decoding strings to ensure they haven't been
tampered with, i.e. allowing the end of a Base64 string to be tweaked where it still produces that same
byte array to create the underlying Guid. Effectively there is "unused space" in the Base64 string which is
ignored, but will now result in an `FormatException` being thrown.
ShortGuid will never produce an invalid string, however if one is supplied, it could result in an unintended
collision where multiple URL-safe Base64 strings can point to the same Guid. To avoid this uncertainty, a
round-trip check is performed to ensure a 1-1 match with the input string.
Stick with version 1.1.0 if you require the old behaviour with opt-in strict parsing.
Pass
Info: Completed
Everything is awesome!
SAFE Assessment
Compliance
Licenses
No license compliance issues
Secrets
No sensitive information found
Security
Vulnerabilities
No known vulnerabilities detected
Hardening
No application hardening issues
Threats
Tampering
No evidence of software tampering
Malware
No evidence of malware inclusion
Issues
Behaviors
Vulnerabilities
Downloads
2.37M
Total Downloads
Contributions
2
Contributors
Dependencies
0
Declared Dependencies
Dependents
9
Dependents