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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f983017b27ef315094b6487a7198f28c29301da20da3ec3dfb41670f5aead976
|
|
| MD5 |
3ee35fdaf9fb19a80e46216e39d15712
|
|
| BLAKE2b-256 |
85da337a756a0ac33ac802858afd2767256f9dd8d5722acdcce369949b7b700b
|
Provenance
The following attestation bundles were made for cipher_secret_mahdi-0.1.0.tar.gz:
Publisher:
release.yml on mahdichaari100/cipher-secret
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cipher_secret_mahdi-0.1.0.tar.gz -
Subject digest:
f983017b27ef315094b6487a7198f28c29301da20da3ec3dfb41670f5aead976 - Sigstore transparency entry: 2049192936
- Sigstore integration time:
-
Permalink:
mahdichaari100/cipher-secret@bba67be4dc4c9d5444802280cf6321f87d718aaa -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/mahdichaari100
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bba67be4dc4c9d5444802280cf6321f87d718aaa -
Trigger Event:
release
-
Statement type:
File details
Details for the file cipher_secret_mahdi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cipher_secret_mahdi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcdca54590cc7b458aace6b041f41b936a2262e25327ffe81aa2ea4ce6750085
|
|
| MD5 |
3f22b1c24657e844cc741a75ada9d152
|
|
| BLAKE2b-256 |
d237cf1d7eac596d05382c59ad872cb81690ce8ae5441af4cd583ec581dd11f0
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cipher_secret_mahdi-0.1.0-py3-none-any.whl -
Subject digest:
fcdca54590cc7b458aace6b041f41b936a2262e25327ffe81aa2ea4ce6750085 - Sigstore transparency entry: 2049193181
- Sigstore integration time:
-
Permalink:
mahdichaari100/cipher-secret@bba67be4dc4c9d5444802280cf6321f87d718aaa -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/mahdichaari100
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bba67be4dc4c9d5444802280cf6321f87d718aaa -
Trigger Event:
release
-
Statement type: