func encryptAES(key []byte, nonce []byte, message []byte) []byte {

	cphr, err := aes.NewCipher(key)
	if err != nil {
		log.Fatal(err)
	}
	gcm, err := cipher.NewGCM(cphr)
	if err != nil {
		log.Fatal(err)
	}

	return gcm.Seal(nil, nonce, message, nil)
}
//EncryptAES encrypts the message using AES and GCM as the mode of operation for symmetric key cryptographic block ciphers
EncryptAES encrypts the message using AES and GCM as the mode of operation for symmetric key cryptographic block ciphers
// EncryptAES encrypts the message using AES and GCM as the mode of operation for symmetric key cryptographic block ciphers
func encryptAES(key []byte, nonce []byte, message []byte) []byte {
	cphr, err := aes.NewCipher(key)
	if err != nil {
		log.Fatal(err)
	}
	gcm, err := cipher.NewGCM(cphr)
	if err != nil {
		log.Fatal(err)
	}
	return gcm.Seal(nil, nonce, message, nil)
}
func encryptAES ( key [ ] byte , nonce [ ] byte , message [ ] byte ) [ ] byte { cphr , err := aes . NewCipher ( key ) if err != nil { log . Fatal ( err ) } gcm , err := cipher . NewGCM ( cphr ) if err != nil { log . Fatal ( err ) } return gcm . Seal ( nil , nonce , message , nil ) }
EncryptAES encrypts the message using AES and GCM as the mode of operation for symmetric key cryptographic block ciphers
EncryptAES encrypts the message using AES and GCM as the mode of operation for symmetric key cryptographic block ciphers