Skip to main content
\# DiamondCrypt



DiamondCrypt is a private-use cryptography toolkit designed for secure password generation, file encryption, byte-level encryption, and general-purpose security utilities. This project is intended for personal use only and may not be sold, redistributed, or hosted publicly.



\## Features



\### Secure Password Generation

DiamondCrypt includes a strong password generator that produces 20-character passwords by default. Generated passwords include uppercase letters, lowercase letters, digits, and symbols. The generator uses Python's `secrets` module for cryptographically secure randomness.



\### Key Generation

The library provides a simple interface for generating Fernet-compatible symmetric keys. These keys can be used for both file and byte-level encryption.



\### File Encryption and Decryption

DiamondCrypt can encrypt any file into a secure binary format and decrypt encrypted files back to their original form. The encryption system is based on AES-backed Fernet encryption.



\### Byte-Level Encryption

Raw bytes can be encrypted and decrypted using the same key system. This is useful for custom data pipelines or secure in-memory operations.



\### Utility Helpers

The library includes helper functions for loading and saving raw bytes, making file operations straightforward and consistent.



\## Installation



To install DiamondCrypt locally:

pip install diamondcrypt




To build a wheel:



python -m build




\## Usage Examples



\### Generate a secure password



```python

import diamondcrypt as dc



pw = dc.generate\_password()

print(pw)

### Encrypt and decrypt bytes

import diamondcrypt as dc



key = dc.generate\_key()

data = b"hello world"



encrypted = dc.encrypt\_bytes(key, data)

decrypted = dc.decrypt\_bytes(key, encrypted)



print(decrypted)

### Encrypt and decrypt files

import diamondcrypt as dc



key = dc.generate\_key()



dc.encrypt\_file(key, "secret.txt", "secret.bin")

dc.decrypt\_file(key, "secret.bin", "secret\_out.txt")

## License Notice

DiamondCrypt is licensed under a custom private-use license. You may not sell this software, distribute it, host it publicly, or use it commercially. See the LICENSE file for full details.

## Future Plans

Planned additions include password strength scoring, hashing utilities, secure temporary file handling, optional command-line tools, and key storage helpers.

## Author

Created by Graham, 2026.


Release files for diamondcrypt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diamondcrypt 0.1.0
File Size Uploaded
diamondcrypt-0.1.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for diamondcrypt 0.1.0
File Interpreter ABI Platform
diamondcrypt-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / diamondcrypt-0.1.0.tar.gz

Download URL diamondcrypt-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fa4dcea9a5b646e16362de7d0cdb9bb87140a8de4d34157a0385a10dccf0d72f
BLAKE2b-256 checksum
How to use checksums
04eebb98f13a0f8728397f63ab05909cc8d24a0db6be19d1893d1a0396b07a70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release files / diamondcrypt-0.1.0-py3-none-any.whl

Download URL diamondcrypt-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a99ceee99a14408872db4570297cfb6e8e3f58be1a4475ee5c9920d724d072f3
BLAKE2b-256 checksum
How to use checksums
cec5f40378757a7611b1063638d31c52ae9f9077fc0c50fb7a4ec8d3ba0b267b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page