func NewAES256Service(passphrase string) (*AES256Service, error) {
	salt, err := GenerateSalt(SaltSize)
	if err != nil {
		return nil, err
	}
	cipher, err := NewAES256Cipher(passphrase, salt)
	if err != nil {
		return nil, err
	}
	return &AES256Service{Cipher: cipher}, nil
}
NewAES256Service instantiates a new AES256Service
package crypto
import (
	"crypto/aes"
	"crypto/cipher"
	"crypto/rand"
	"errors"
	"fmt"
	"io"
	"golang.org/x/crypto/scrypt"
)
type AES256Service struct {
	Cipher *AES256Cipher
}