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.1.tar.gz (34.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.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robotframework_pgp-1.1.1.tar.gz
  • Upload date:
  • Size: 34.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.1.tar.gz
Algorithm Hash digest
SHA256 9d074daefc597e6551a9f2e0b687ce400e051146abdec27ebcc21a49f499e0d6
MD5 797be31a13766628040e8064f0007361
BLAKE2b-256 7002d807cbc238faf1568f3058633f551b7fc24f5e22bb640e45ccde57aba8ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotframework_pgp-1.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_pgp-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f22cbc5dde62473d19bebd1afdf29bda68cb5ec06c2e3048eba86ee3702814c
MD5 1f739cebf6bcb80a71b23e65289e6865
BLAKE2b-256 f4e32484098ed26a46fc1df0de26df24f7114563951b731e1af77e668c7383f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotframework_pgp-1.1.1-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