github.com/goravel/framework@v1.13.9/contracts/crypt/crypt.go (about)

     1  package crypt
     2  
     3  //go:generate mockery --name=Crypt
     4  type Crypt interface {
     5  	// EncryptString encrypts the given string value, returning the encrypted string and an error if any.
     6  	EncryptString(value string) (string, error)
     7  	// DecryptString decrypts the given string payload, returning the decrypted string and an error if any.
     8  	DecryptString(payload string) (string, error)
     9  }