Skip to main content

Robot Framework library for PGP/GPG encryption and decryption operations

Project description

Robot Framework PGP Library

A Robot Framework library for PGP/GPG encryption and decryption operations.

Features

  • Text and file encryption/decryption (asymmetric and symmetric)
  • Key generation, import/export (public and private), inspection, and deletion
  • Digital signatures with cleartext signing and verification
  • Isolated GPG home directory support for hermetic test runs
  • 17 keywords, easy integration with Robot Framework test suites

Requirements

  • Python 3.8+
  • A gpg binary on the PATH (GnuPG 2.x) — there is no pure-Python fallback

Installation

pip install robotframework-pgp

Quick Start

*** Settings ***
Library    RobotFrameworkPGP

*** Test Cases ***
Encrypt And Decrypt Text
    Generate Key Pair    recipient@example.com    Test User    2048    mypassword
    ${encrypted}    Encrypt Text    Hello World    recipient@example.com
    ${decrypted}    Decrypt Text    ${encrypted}    passphrase=mypassword
    Should Be Equal    ${decrypted}    Hello World

Runnable example suites live in examples/: basic usage, file operations, and key management.

Documentation

Full documentation is available at Read the Docs.

Development

Setup Development Environment

git clone https://github.com/ohmrefresh/robotframework-pgp.git
cd robotframework-pgp
pip install -r requirements-dev.txt

Running Tests

pytest

Running Robot Framework Tests

robot tests/acceptance/

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_pgp-1.1.2.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_pgp-1.1.2-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_pgp-1.1.2.tar.gz.

File metadata

  • Download URL: robotframework_pgp-1.1.2.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for robotframework_pgp-1.1.2.tar.gz
Algorithm Hash digest
SHA256 d6d526e4252da40c4feb20c768d35e9a57d6e3857f48570f435c54348b86f06c
MD5 b6a50de47284ca7872881e7fba101bdc
BLAKE2b-256 5f23eb29010ffdd26668e5f1a624ff36695e217f42c837c9b4c2a94516f2eae8

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotframework_pgp-1.1.2.tar.gz:

Publisher: release.yml on ohmrefresh/robotframework-pgp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file robotframework_pgp-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_pgp-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 015e8c41dc07dab5272107ca0f22f1f283af08f845a25ddb5d448d1b1d539218
MD5 72537fbd25a9b91c552fd13ac2e9b527
BLAKE2b-256 65c6fd3d2388a196adab33bfd13e9b86cc9d4d4df913d7c3a14f8b5c99c12d6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotframework_pgp-1.1.2-py3-none-any.whl:

Publisher: release.yml on ohmrefresh/robotframework-pgp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page