package app

import (
	
	
	
	

	
)

func encrypt( string,  []byte) ([]byte, error) {
	,  := aes.NewCipher([]byte())
	if  != nil {
		return nil, 
	}

	,  := cipher.NewGCM()
	if  != nil {
		return nil, 
	}

	 := make([]byte, .NonceSize())
	if _,  = io.ReadFull(rand.Reader, );  != nil {
		return nil, 
	}

	return .Seal(, , , nil), nil
}

func decrypt( string,  []byte) ([]byte, error) {
	,  := aes.NewCipher([]byte())
	if  != nil {
		return nil, 
	}

	,  := cipher.NewGCM()
	if  != nil {
		return nil, 
	}

	 := .NonceSize()
	if len() <  {
		return nil, errors.New("ciphertext too short")
	}

	,  := [:], [:]
	return .Open(nil, , , nil)
}