Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DecodeString (0.22 sec)

  1. internal/hash/checksum.go

    func NewChecksumWithType(alg ChecksumType, value string) *Checksum {
    	if !alg.IsSet() {
    		return nil
    	}
    	bvalue, err := base64.StdEncoding.DecodeString(value)
    	if err != nil {
    		return nil
    	}
    	c := Checksum{Type: alg, Encoded: value, Raw: bvalue}
    	if !c.Valid() {
    		return nil
    	}
    	return &c
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
Back to top