This change will vendor the new version of the exoscale-import post-processor component, but remove all of its code from Packer. After the v1.8.0 release this change should be removed entirely. This vendor process is being used as a workaround for decoupling the exoscale-import component without causing a breaking change in Packer. Users of Exoscale are encouraged to leverage `packer init` for installing the latest version of packer-plugin-exoscale.
13 lines
243 B
Go
13 lines
243 B
Go
package objx
|
|
|
|
import (
|
|
"crypto/sha1"
|
|
"encoding/hex"
|
|
)
|
|
|
|
// HashWithKey hashes the specified string using the security key
|
|
func HashWithKey(data, key string) string {
|
|
d := sha1.Sum([]byte(data + ":" + key))
|
|
return hex.EncodeToString(d[:])
|
|
}
|