Skip to content

Ali142-tech/Password-Crypt-MCP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Crypt MCP Server

An MCP (Model Context Protocol) server providing password encryption and hashing tools.

Features

  • Bcrypt hashing - Recommended for password storage
  • SHA-256 hashing - Fast cryptographic hash
  • PBKDF2 hashing - Key derivation function with salt
  • Fernet encryption - Symmetric encryption for reversible operations
  • Password verification - Verify bcrypt hashes

Installation

From Source

git clone <repository-url>
cd pasword-crypt
pip install -e .

As MCP Server

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "password-crypt": {
      "command": "py",
      "args": ["main.py"],
      "cwd": "/path/to/pasword-crypt"
    }
  }
}

Usage

Once connected to Claude Desktop, you can use commands like:

  • "Encrypt the password 'mypassword123' using bcrypt"
  • "Hash 'secretpassword' with SHA-256"
  • "Encrypt 'admin123' with PBKDF2"
  • "Verify if password 'test123' matches this bcrypt hash"

Available Tools

  • encrypt_password_bcrypt(password) - Bcrypt hash with salt
  • encrypt_password_sha256(password) - SHA-256 hash
  • encrypt_password_pbkdf2(password, salt=None) - PBKDF2 with configurable salt
  • encrypt_password_fernet(password, key=None) - Fernet symmetric encryption
  • verify_bcrypt_password(password, hashed) - Verify bcrypt hash

Security Notes

  • Bcrypt includes automatic salt generation
  • PBKDF2 uses 100,000 iterations for security
  • Fernet generates secure keys automatically
  • All operations use secure cryptographic libraries

Development

# Install in development mode
pip install -e .

# Run the server directly
py main.py

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors