sha512Hash() — fiber Function Reference
Architecture documentation for the sha512Hash() function in basicauth_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 824a33e0_c7e5_0667_eed0_344e2a530f7a["sha512Hash()"] c1fa52c0_acd4_56de_8c46_542417f3c9b8["basicauth_test.go"] 824a33e0_c7e5_0667_eed0_344e2a530f7a -->|defined in| c1fa52c0_acd4_56de_8c46_542417f3c9b8 eccc3360_6ccc_cef3_834c_e8334f277553["Test_parseHashedPassword()"] eccc3360_6ccc_cef3_834c_e8334f277553 -->|calls| 824a33e0_c7e5_0667_eed0_344e2a530f7a 39b9106c_6002_2acd_916e_ed2d2a736aaf["Test_BasicAuth_HashVariants()"] 39b9106c_6002_2acd_916e_ed2d2a736aaf -->|calls| 824a33e0_c7e5_0667_eed0_344e2a530f7a d466c515_0ccf_3526_c73c_d475f5e9d392["Test_BasicAuth_HashVariants_Invalid()"] d466c515_0ccf_3526_c73c_d475f5e9d392 -->|calls| 824a33e0_c7e5_0667_eed0_344e2a530f7a style 824a33e0_c7e5_0667_eed0_344e2a530f7a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/basicauth/basicauth_test.go lines 26–29
func sha512Hash(p string) string {
sum := sha512.Sum512([]byte(p))
return "{SHA512}" + base64.StdEncoding.EncodeToString(sum[:])
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does sha512Hash() do?
sha512Hash() is a function in the fiber codebase, defined in middleware/basicauth/basicauth_test.go.
Where is sha512Hash() defined?
sha512Hash() is defined in middleware/basicauth/basicauth_test.go at line 26.
What calls sha512Hash()?
sha512Hash() is called by 3 function(s): Test_BasicAuth_HashVariants, Test_BasicAuth_HashVariants_Invalid, Test_parseHashedPassword.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free