Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SHA256HexString (0.18 sec)

  1. internal/hash/reader_test.go

    		t.Errorf("Expected md5hex \"e2fc714c4727ee9395f324cd2e7f331f\", got %s", hex.EncodeToString(md5sum))
    	}
    	if r.SHA256HexString() != "88d4266fd4e6338d13b845fcf289579d209c897823b9217da3e161936f031589" {
    		t.Errorf("Expected sha256hex \"88d4266fd4e6338d13b845fcf289579d209c897823b9217da3e161936f031589\", got %s", r.SHA256HexString())
    	}
    	if base64.StdEncoding.EncodeToString(md5sum) != "4vxxTEcn7pOV8yTNLn8zHw==" {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  2. internal/hash/reader.go

    // It corresponds to the checksum that is expected and
    // not the actual SHA256 checksum of the content.
    func (r *Reader) SHA256() []byte {
    	return r.contentSHA256
    }
    
    // SHA256HexString returns a hex representation of the SHA256.
    func (r *Reader) SHA256HexString() string {
    	return hex.EncodeToString(r.contentSHA256)
    }
    
    // ContentCRCType returns the content checksum type.
    func (r *Reader) ContentCRCType() ChecksumType {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
Back to top