Replace deprecated crypto/md5 with crypto/sha256

This commit is contained in:
Jeffrey Regan
2018-06-12 13:47:22 -07:00
parent 5285e6101f
commit c6d8bcb01b

View File

@@ -18,7 +18,7 @@ limitations under the License.
package util
import (
"crypto/md5"
"crypto/sha256"
"errors"
"fmt"
"path"
@@ -47,7 +47,7 @@ func HashObject(obj runtime.Object, codec runtime.Codec) (string, error) {
if err != nil {
return "", err
}
return fmt.Sprintf("%x", md5.Sum(data)), nil
return fmt.Sprintf("%x", sha256.Sum256(data)), nil
}
// ParseFileSource parses the source given.