Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for tripleDESKey (0.16 sec)

  1. src/crypto/des/example_test.go

    	// duplicating the first 8 bytes of the 16-byte key.
    	ede2Key := []byte("example key 1234")
    
    	var tripleDESKey []byte
    	tripleDESKey = append(tripleDESKey, ede2Key[:16]...)
    	tripleDESKey = append(tripleDESKey, ede2Key[:8]...)
    
    	_, err := des.NewTripleDESCipher(tripleDESKey)
    	if err != nil {
    		panic(err)
    	}
    
    	// See crypto/cipher for how to use a cipher.Block for encryption and
    	// decryption.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 697 bytes
    - Viewed (0)
Back to top