Documentation
¶
Index ¶
- func New(c *core.Core) (any, error)
- type Service
- func (s *Service) CreateKeyPair(name, passphrase string) (string, error)
- func (s *Service) DecryptPGP(privateKey, message, passphrase string, opts ...any) (string, error)
- func (s *Service) EncryptPGP(writer goio.Writer, recipientPath, data string, opts ...any) (string, error)
- func (s *Service) HandleIPCEvents(c *core.Core, msg core.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the core.Crypt interface using OpenPGP.
func (*Service) CreateKeyPair ¶
CreateKeyPair generates a new RSA-4096 PGP keypair. Returns the armored private key string.
func (*Service) DecryptPGP ¶
DecryptPGP decrypts a PGP message using the provided armored private key and passphrase.
func (*Service) EncryptPGP ¶
func (s *Service) EncryptPGP(writer goio.Writer, recipientPath, data string, opts ...any) (string, error)
EncryptPGP encrypts data for a recipient identified by their public key (armored string in recipientPath). The encrypted data is written to the provided writer and also returned as an armored string.
Click to show internal directories.
Click to hide internal directories.