mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
* feat(api): add motd handler * feat(app): add the motd api layer * feat(motd): display motd and add the ability to dismiss information messages * style(home): relocate important message before info01 * feat(api): silently fail when an error occurs during motd retrieval
10 lines
201 B
Go
10 lines
201 B
Go
package crypto
|
|
|
|
import "crypto/md5"
|
|
|
|
// HashFromBytes returns the hash of the specified data
|
|
func HashFromBytes(data []byte) []byte {
|
|
digest := md5.New()
|
|
digest.Write(data)
|
|
return digest.Sum(nil)
|
|
}
|