DrugHub PGP Login Guide

Access DrugHub Market: http://drughuberjxfrxtlk2cystdz4jvogmc3lsnk5drvwx2nfi63ou2r2kid.onion/ https://drughub.io (Clearnet Gateway)

DrugHub Market uses passwordless PGP authentication for maximum security. No usernames, no passwords - only your PGP key pair. This comprehensive guide covers PGP key generation, registration, and login procedures. You must understand PGP encryption before using DrugHub.

Why PGP-Only Authentication?

DrugHub's passwordless PGP login system provides security advantages over traditional authentication:

Security Aspect Traditional Login DrugHub PGP Login
Phishing Risk High (credentials can be stolen) Zero (no credentials to steal)
Database Breach Exposes password hashes Only public keys (useless to attackers)
Two-Factor Auth Optional add-on Mandatory (private key = 2FA)
Password Reuse Common vulnerability Not applicable
Brute Force Possible with weak passwords Computationally infeasible

PGP Key Generation

Prerequisites

Key Generation Steps

1Install GPG Software

Linux/macOS: GPG usually pre-installed. Verify with: gpg --version

Windows: Download Gpg4win from gpg4win.org

Tails: GPG pre-installed and configured for maximum security

2Generate New Key Pair

Command: gpg --full-generate-key

Recommended settings:

3Backup Private Key

Export private key: gpg --export-secret-keys --armor YOUR_KEY_ID > private-key.asc

Critical: Store backup on encrypted USB drive or offline storage. Loss of private key = permanent account loss.

4Export Public Key

Command: gpg --export --armor YOUR_KEY_ID > public-key.asc

This public key will be uploaded to DrugHub during registration.

DrugHub Registration Process

Registration Steps

  1. Access DrugHub via Tor Browser
  2. Complete Proof of Work (10-30 seconds)
  3. Navigate to registration page
  4. Upload or paste your public PGP key
  5. Submit registration
  6. DrugHub verifies key validity
  7. Account created - no password needed
  8. Receive private mirror URLs (bookmark immediately)
⚠ Important: DrugHub requires PGP knowledge before registration. The marketplace operates with a "no handholding" philosophy. You must understand key management, encryption, decryption, and signing before attempting to register.

Login Procedure

How PGP Login Works

DrugHub login uses cryptographic challenge-response authentication:

  1. Access DrugHub: Navigate to onion URL or private mirror
  2. Initiate Login: Click login button
  3. Receive Challenge: DrugHub generates random challenge text encrypted with your public key
  4. Decrypt Challenge: Use your private key to decrypt the challenge
  5. Sign Response: Sign the decrypted challenge with your private key
  6. Submit Signature: Upload signed response to DrugHub
  7. Verification: DrugHub verifies signature using your public key
  8. Authenticated: If signature matches, you're logged in

Manual Login Commands

Decrypt challenge:

gpg --decrypt challenge.txt

Sign response:

echo "DECRYPTED_CHALLENGE_TEXT" | gpg --clearsign

Note: DrugHub's encryption helper scripts can automate this process transparently.

Encryption Helper Tools

DrugHub Encryption Helper Scripts

DrugHub provides encryption helper tools that function as reverse proxies, automatically handling encryption, decryption, and signing:

Available Languages:

Features:

Compatible Operating Systems:

Setup: Download source code from DrugHub, verify PGP signature, compile, configure with your PGP key, run proxy, access DrugHub through http://localhost:8080

Security Best Practices

Key Management

Login Security

Troubleshooting

Common Issues

Issue: Public key rejected during registration

Solution: Ensure key is 2048+ bits RSA, properly formatted ASCII armor, and valid PGP format

Issue: Cannot decrypt login challenge

Solution: Verify you're using the same private key that matches registered public key. Check passphrase correctness.

Issue: Signature verification fails

Solution: Ensure you're signing the exact decrypted challenge text without modifications. No extra whitespace or characters.

Issue: Lost private key

Solution: Account permanently lost. No password reset possible. Create new account with new PGP key pair.

Ready to create your DrugHub account?

Generate PGP key pair, then access DrugHub to register:

http://drughuberjxfrxtlk2cystdz4jvogmc3lsnk5drvwx2nfi63ou2r2kid.onion/