Versions in this module Expand all Collapse all v0 v0.0.2 Dec 25, 2025 v0.0.1 Nov 14, 2025 Changes in this version + type HashType string + const LTHN + const MD5 + const SHA1 + const SHA256 + const SHA512 + type Service struct + func NewService() *Service + func (s *Service) DecryptPGP(privateKey, ciphertext []byte) ([]byte, error) + func (s *Service) DecryptRSA(privateKey, ciphertext, label []byte) ([]byte, error) + func (s *Service) EncryptPGP(publicKey, data []byte) ([]byte, error) + func (s *Service) EncryptRSA(publicKey, data, label []byte) ([]byte, error) + func (s *Service) Fletcher16(payload string) uint16 + func (s *Service) Fletcher32(payload string) uint32 + func (s *Service) Fletcher64(payload string) uint64 + func (s *Service) GeneratePGPKeyPair(name, email, comment string) (publicKey, privateKey []byte, err error) + func (s *Service) GenerateRSAKeyPair(bits int) (publicKey, privateKey []byte, err error) + func (s *Service) Hash(lib HashType, payload string) string + func (s *Service) IsHashAlgo(algo string) bool + func (s *Service) Luhn(payload string) bool + func (s *Service) SignPGP(privateKey, data []byte) ([]byte, error) + func (s *Service) SymmetricallyEncryptPGP(passphrase, data []byte) ([]byte, error) + func (s *Service) VerifyPGP(publicKey, data, signature []byte) error