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.


Download files

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

Source Distribution

diamondcrypt-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

diamondcrypt-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file diamondcrypt-0.1.0.tar.gz.

File metadata

  • Download URL: diamondcrypt-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for diamondcrypt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fa4dcea9a5b646e16362de7d0cdb9bb87140a8de4d34157a0385a10dccf0d72f
MD5 4385339ccc5657a44035dbc74f6e2708
BLAKE2b-256 04eebb98f13a0f8728397f63ab05909cc8d24a0db6be19d1893d1a0396b07a70

See more details on using hashes here.

File details

Details for the file diamondcrypt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: diamondcrypt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for diamondcrypt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a99ceee99a14408872db4570297cfb6e8e3f58be1a4475ee5c9920d724d072f3
MD5 04d333644a8af56d1c66d297ce09f7c2
BLAKE2b-256 cec5f40378757a7611b1063638d31c52ae9f9077fc0c50fb7a4ec8d3ba0b267b

See more details on using hashes here.

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