package crypto

import "errors"

var ErrMissingAppSecret = errors.New("missing app secret")

func Encrypt(secret, plaintext string) (string, error) {
	if secret == "" {
		return "", ErrMissingAppSecret
	}
	// TODO(milestone-6): replace with AES-GCM encryption.
	return plaintext, nil
}

func Decrypt(secret, ciphertext string) (string, error) {
	if secret == "" {
		return "", ErrMissingAppSecret
	}
	// TODO(milestone-6): replace with AES-GCM decryption.
	return ciphertext, nil
}
