Skip to main content

Une librairie Python moderne pour chiffrer et déchiffrer des textes, listes et dictionnaires avec le chiffrement de César.

Project description

cipher-secret

Une librairie Python moderne pour chiffrer et déchiffrer des textes, listes et dictionnaires avec le chiffrement de César.

🛠️ Exemple d'utilisation

Voici comment utiliser la classe Secret dans votre code Python :

from secret import Secret

# 1. Initialisation avec un décalage de 3 positions
# numero=True : les chiffres (0-9) ne sont pas modifiés
outil = Secret(decalage=3, numero=True)

# --- CHIFFREMENT ---
# Chiffrer un texte simple
texte_cache = outil.chiffrage("Bonjour tout le monde ! 2026")
print(texte_cache)  # Affiche : Erqmrxu wrxw oh prqgh ! 2026

# Chiffrer une liste
liste_cachee = outil.chiffrage(["Code", "Secret"])
print(liste_cachee)  # Affiche : ['Frgh', 'Vhfuhw']

# Chiffrer les valeurs d'un dictionnaire
mon_dict = {"pseudo": "Alice", "statut": "Admin"}
dict_cache = outil.chiffrage(mon_dict, dictionnaire="Values")
print(dict_cache)  # Affiche : {'pseudo': 'Dolfh', 'statut': 'Adplq'}


# --- DÉCHIFFREMENT ---
# Déchiffrer le texte
texte_original = outil.dechiffrage(texte_cache)
print(texte_original)  # Affiche : Bonjour tout le monde ! 2026

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

cipher_secret_mahdi-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

cipher_secret_mahdi-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cipher_secret_mahdi-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cipher_secret_mahdi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f983017b27ef315094b6487a7198f28c29301da20da3ec3dfb41670f5aead976
MD5 3ee35fdaf9fb19a80e46216e39d15712
BLAKE2b-256 85da337a756a0ac33ac802858afd2767256f9dd8d5722acdcce369949b7b700b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cipher_secret_mahdi-0.1.0.tar.gz:

Publisher: release.yml on mahdichaari100/cipher-secret

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for cipher_secret_mahdi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcdca54590cc7b458aace6b041f41b936a2262e25327ffe81aa2ea4ce6750085
MD5 3f22b1c24657e844cc741a75ada9d152
BLAKE2b-256 d237cf1d7eac596d05382c59ad872cb81690ce8ae5441af4cd583ec581dd11f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for cipher_secret_mahdi-0.1.0-py3-none-any.whl:

Publisher: release.yml on mahdichaari100/cipher-secret

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