Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for exampleplaintext (0.24 sec)

  1. src/crypto/cipher/example_test.go

    	// package like bcrypt or scrypt.
    	// When decoded the key should be 16 bytes (AES-128) or 32 (AES-256).
    	key, _ := hex.DecodeString("6368616e676520746869732070617373776f726420746f206120736563726574")
    	plaintext := []byte("exampleplaintext")
    
    	block, err := aes.NewCipher(key)
    	if err != nil {
    		panic(err.Error())
    	}
    
    	// Never use more than 2^32 random nonces with a given key because of the risk of a repeat.
    	nonce := make([]byte, 12)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
Back to top