func decryptAES(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)
	}

	plaintext, err := gcm.Open(nil, nonce, message, nil)
	if err != nil {
		log.Fatal(err)
	}

	return plaintext
}
//DecryptAES encrypts the message using AES
DecryptAES encrypts the message using AES
// DecryptAES encrypts the message using AES
func decryptAES(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)
	}
	plaintext, err := gcm.Open(nil, nonce, message, nil)
	if err != nil {
		log.Fatal(err)
	}
	return plaintext
}
func decryptAES ( 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 ) } plaintext , err := gcm . Open ( nil , nonce , message , nil ) if err != nil { log . Fatal ( err ) } return plaintext }
DecryptAES encrypts the message using AES
DecryptAES encrypts the message using AES