<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.sodium.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'ref.sodium.php',
    1 => 'Sodium Fonctions',
    2 => 'Sodium Fonctions',
  ),
  'up' => 
  array (
    0 => 'book.sodium.php',
    1 => 'Sodium',
  ),
  'prev' => 
  array (
    0 => 'sodium.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'next' => 
  array (
    0 => 'function.sodium-add.php',
    1 => 'sodium_add',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/sodium/reference.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/ref.sodium.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.sodium" class="reference">
 <h1 class="title">Sodium Fonctions</h1>

 





















































































































































































































































































































































































































































































































































































































































































<h2>Sommaire</h2><ul class="chunklist chunklist_reference"><li><a href="function.sodium-add.php">sodium_add</a> — Ajoute de grands nombres</li><li><a href="function.sodium-base642bin.php">sodium_base642bin</a> — D&eacute;code une cha&icirc;ne encod&eacute;e en base64 en binaire brut.</li><li><a href="function.sodium-bin2base64.php">sodium_bin2base64</a> — Encode une cha&icirc;ne binaire brute en base64.</li><li><a href="function.sodium-bin2hex.php">sodium_bin2hex</a> — Encode en hexad&eacute;cimal</li><li><a href="function.sodium-compare.php">sodium_compare</a> — Compare des grands nombres</li><li><a href="function.sodium-crypto-aead-aegis128l-decrypt.php">sodium_crypto_aead_aegis128l_decrypt</a> — V&eacute;rifie puis d&eacute;chiffre un message avec AEGIS-128L</li><li><a href="function.sodium-crypto-aead-aegis128l-encrypt.php">sodium_crypto_aead_aegis128l_encrypt</a> — Chiffre puis authentifie un message avec AEGIS-128L</li><li><a href="function.sodium-crypto-aead-aegis128l-keygen.php">sodium_crypto_aead_aegis128l_keygen</a> — G&eacute;n&egrave;re une cl&eacute; AEGIS-128L al&eacute;atoire</li><li><a href="function.sodium-crypto-aead-aegis256-decrypt.php">sodium_crypto_aead_aegis256_decrypt</a> — V&eacute;rifie puis d&eacute;chiffre un message avec AEGIS-256</li><li><a href="function.sodium-crypto-aead-aegis256-encrypt.php">sodium_crypto_aead_aegis256_encrypt</a> — Chiffr&eacute; puis authentifie un message avec AEGIS-256</li><li><a href="function.sodium-crypto-aead-aegis256-keygen.php">sodium_crypto_aead_aegis256_keygen</a> — G&eacute;n&egrave;re une cl&eacute; AEGIS-256 al&eacute;atoire</li><li><a href="function.sodium-crypto-aead-aes256gcm-decrypt.php">sodium_crypto_aead_aes256gcm_decrypt</a> — V&eacute;rifie puis d&eacute;chiffre un message avec AES-256-GCM</li><li><a href="function.sodium-crypto-aead-aes256gcm-encrypt.php">sodium_crypto_aead_aes256gcm_encrypt</a> — Chiffre puis authentifie avec AES-256-GCM</li><li><a href="function.sodium-crypto-aead-aes256gcm-is-available.php">sodium_crypto_aead_aes256gcm_is_available</a> — V&eacute;rifie si le mat&eacute;riel prend en charge AES256-GCM</li><li><a href="function.sodium-crypto-aead-aes256gcm-keygen.php">sodium_crypto_aead_aes256gcm_keygen</a> — G&eacute;n&egrave;re une cl&eacute; AES-256-GCM al&eacute;atoire</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-decrypt.php">sodium_crypto_aead_chacha20poly1305_decrypt</a> — V&eacute;rifie puis d&eacute;chiffre avec ChaCha20-Poly1305</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-encrypt.php">sodium_crypto_aead_chacha20poly1305_encrypt</a> — Chiffre puis authentifie avec ChaCha20-Poly1305</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-decrypt.php">sodium_crypto_aead_chacha20poly1305_ietf_decrypt</a> — V&eacute;rifie que le texte chiffr&eacute; inclut une &eacute;tiquette valide</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-encrypt.php">sodium_crypto_aead_chacha20poly1305_ietf_encrypt</a> — Chiffre un message</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-keygen.php">sodium_crypto_aead_chacha20poly1305_ietf_keygen</a> — G&eacute;n&egrave;re un cl&eacute; ChaCha20-Poly1305 (IETF) al&eacute;atoire</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-keygen.php">sodium_crypto_aead_chacha20poly1305_keygen</a> — G&eacute;n&egrave;re une cl&eacute; ChaCha20-Poly1305 al&eacute;atoire</li><li><a href="function.sodium-crypto-aead-xchacha20poly1305-ietf-decrypt.php">sodium_crypto_aead_xchacha20poly1305_ietf_decrypt</a> — (Pr&eacute;f&eacute;r&eacute;) V&eacute;rifie puis d&eacute;chiffre avec XChaCha20-Poly1305</li><li><a href="function.sodium-crypto-aead-xchacha20poly1305-ietf-encrypt.php">sodium_crypto_aead_xchacha20poly1305_ietf_encrypt</a> — (Pr&eacute;f&eacute;r&eacute;) Chiffre puis authentifie avec XChaCha20-Poly1305</li><li><a href="function.sodium-crypto-aead-xchacha20poly1305-ietf-keygen.php">sodium_crypto_aead_xchacha20poly1305_ietf_keygen</a> — G&eacute;n&egrave;re une cl&eacute; ChaCha20-Poly1305 al&eacute;atoire</li><li><a href="function.sodium-crypto-auth.php">sodium_crypto_auth</a> — Calcule une &eacute;tiquette pour le message</li><li><a href="function.sodium-crypto-auth-keygen.php">sodium_crypto_auth_keygen</a> — G&eacute;n&egrave;re une cl&eacute; al&eacute;atoire pour sodium_crypto_auth</li><li><a href="function.sodium-crypto-auth-verify.php">sodium_crypto_auth_verify</a> — V&eacute;rifie que l'&eacute;tiquette est valide pour le message</li><li><a href="function.sodium-crypto-box.php">sodium_crypto_box</a> — Chiffrement asym&eacute;trique authentifi&eacute;</li><li><a href="function.sodium-crypto-box-keypair.php">sodium_crypto_box_keypair</a> — G&eacute;n&egrave;re al&eacute;atoirement une cl&eacute; secr&egrave;te et une cl&eacute; publique correspondante</li><li><a href="function.sodium-crypto-box-keypair-from-secretkey-and-publickey.php">sodium_crypto_box_keypair_from_secretkey_and_publickey</a> — Cr&eacute;er une paire de cl&eacute;s unifi&eacute;e &agrave; partir d'une cl&eacute; secr&egrave;te et d'une cl&eacute; publique</li><li><a href="function.sodium-crypto-box-open.php">sodium_crypto_box_open</a> — D&eacute;chiffrement authentifi&eacute; avec cl&eacute; publique</li><li><a href="function.sodium-crypto-box-publickey.php">sodium_crypto_box_publickey</a> — Extrait la cl&eacute; publique d'une paire de cl&eacute;s crypto_box</li><li><a href="function.sodium-crypto-box-publickey-from-secretkey.php">sodium_crypto_box_publickey_from_secretkey</a> — Calcule la cl&eacute; publique &agrave; partir d'une cl&eacute; secr&egrave;te</li><li><a href="function.sodium-crypto-box-seal.php">sodium_crypto_box_seal</a> — Chiffrement anonyme avec cl&eacute; publique</li><li><a href="function.sodium-crypto-box-seal-open.php">sodium_crypto_box_seal_open</a> — D&eacute;chiffrement anonyme avec cl&eacute; publique</li><li><a href="function.sodium-crypto-box-secretkey.php">sodium_crypto_box_secretkey</a> — Extrait la cl&eacute; secr&egrave;te d'une paire de cl&eacute;s crypto_box</li><li><a href="function.sodium-crypto-box-seed-keypair.php">sodium_crypto_box_seed_keypair</a> — D&eacute;rive de mani&egrave;re d&eacute;terministe la paire de cl&eacute;s &agrave; partir d'une seule cl&eacute;</li><li><a href="function.sodium-crypto-core-ristretto255-add.php">sodium_crypto_core_ristretto255_add</a> — Ajoute un &eacute;l&eacute;ment</li><li><a href="function.sodium-crypto-core-ristretto255-from-hash.php">sodium_crypto_core_ristretto255_from_hash</a> — Mappe un vecteur</li><li><a href="function.sodium-crypto-core-ristretto255-is-valid-point.php">sodium_crypto_core_ristretto255_is_valid_point</a> — D&eacute;termine si un point est sur la courbe ristretto255</li><li><a href="function.sodium-crypto-core-ristretto255-random.php">sodium_crypto_core_ristretto255_random</a> — G&eacute;n&egrave;re une cl&eacute; al&eacute;atoire</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-add.php">sodium_crypto_core_ristretto255_scalar_add</a> — Ajoute une valeur scalaire</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-complement.php">sodium_crypto_core_ristretto255_scalar_complement</a> — Le but de sodium_crypto_core_ristretto255_scalar_complement</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-invert.php">sodium_crypto_core_ristretto255_scalar_invert</a> — Inverse une valeur scalaire</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-mul.php">sodium_crypto_core_ristretto255_scalar_mul</a> — Multiplie une valeur scalaire</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-negate.php">sodium_crypto_core_ristretto255_scalar_negate</a> — Inverse le signe d'une valeur scalaire</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-random.php">sodium_crypto_core_ristretto255_scalar_random</a> — G&eacute;n&egrave;re une cl&eacute; al&eacute;atoire</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-reduce.php">sodium_crypto_core_ristretto255_scalar_reduce</a> — R&eacute;duit une valeur scalaire</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-sub.php">sodium_crypto_core_ristretto255_scalar_sub</a> — Soustrait une valeur scalaire</li><li><a href="function.sodium-crypto-core-ristretto255-sub.php">sodium_crypto_core_ristretto255_sub</a> — Soustrait un &eacute;l&eacute;ment</li><li><a href="function.sodium-crypto-generichash.php">sodium_crypto_generichash</a> — Renvoie un hachage du message</li><li><a href="function.sodium-crypto-generichash-final.php">sodium_crypto_generichash_final</a> — Compl&egrave;te le hachage</li><li><a href="function.sodium-crypto-generichash-init.php">sodium_crypto_generichash_init</a> — Initialise un hachage pour le streaming</li><li><a href="function.sodium-crypto-generichash-keygen.php">sodium_crypto_generichash_keygen</a> — G&eacute;n&egrave;re une cl&eacute; de hachage g&eacute;n&eacute;rique al&eacute;atoire</li><li><a href="function.sodium-crypto-generichash-update.php">sodium_crypto_generichash_update</a> — Ajoute un message &agrave; un hachage</li><li><a href="function.sodium-crypto-kdf-derive-from-key.php">sodium_crypto_kdf_derive_from_key</a> — D&eacute;rive une sous-cl&eacute;</li><li><a href="function.sodium-crypto-kdf-keygen.php">sodium_crypto_kdf_keygen</a> — G&eacute;n&egrave;re une cl&eacute; racine al&eacute;atoire pour l'interface KDF</li><li><a href="function.sodium-crypto-kx-client-session-keys.php">sodium_crypto_kx_client_session_keys</a> — Calcule les cl&eacute;s de session c&ocirc;t&eacute; client.</li><li><a href="function.sodium-crypto-kx-keypair.php">sodium_crypto_kx_keypair</a> — Cr&eacute;er une nouvelle paire de cl&eacute;s sodium</li><li><a href="function.sodium-crypto-kx-publickey.php">sodium_crypto_kx_publickey</a> — Extrait la cl&eacute; publique d'une paire de cl&eacute;s crypto_kx</li><li><a href="function.sodium-crypto-kx-secretkey.php">sodium_crypto_kx_secretkey</a> — Extrait la cl&eacute; secr&egrave;te d'une paire de cl&eacute;s crypto_kx</li><li><a href="function.sodium-crypto-kx-seed-keypair.php">sodium_crypto_kx_seed_keypair</a> — Description</li><li><a href="function.sodium-crypto-kx-server-session-keys.php">sodium_crypto_kx_server_session_keys</a> — Calcule les cl&eacute;s de session c&ocirc;t&eacute; serveur.</li><li><a href="function.sodium-crypto-pwhash.php">sodium_crypto_pwhash</a> — D&eacute;rive une cl&eacute; &agrave; partir d'un mot de passe, en utilisant Argon2</li><li><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256.php">sodium_crypto_pwhash_scryptsalsa208sha256</a> — D&eacute;rive une cl&eacute; &agrave; partir d'un mot de passe, en utilisant scrypt</li><li><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256-str.php">sodium_crypto_pwhash_scryptsalsa208sha256_str</a> — Renvoie un hachage encod&eacute; en ASCII</li><li><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256-str-verify.php">sodium_crypto_pwhash_scryptsalsa208sha256_str_verify</a> — V&eacute;rifie si le mot de passe correspond &agrave; une cha&icirc;ne de hachage de mot de passe</li><li><a href="function.sodium-crypto-pwhash-str.php">sodium_crypto_pwhash_str</a> — Renvoie un hachage encod&eacute; en ASCII</li><li><a href="function.sodium-crypto-pwhash-str-needs-rehash.php">sodium_crypto_pwhash_str_needs_rehash</a> — D&eacute;termine si un mot de passe doit &ecirc;tre rehach&eacute;</li><li><a href="function.sodium-crypto-pwhash-str-verify.php">sodium_crypto_pwhash_str_verify</a> — V&eacute;rifie qu'un mot de passe correspond &agrave; un hachage</li><li><a href="function.sodium-crypto-scalarmult.php">sodium_crypto_scalarmult</a> — Calcule un secret partag&eacute; &agrave; partir d'une cl&eacute; secr&egrave;te et d'une cl&eacute; publique</li><li><a href="function.sodium-crypto-scalarmult-base.php">sodium_crypto_scalarmult_base</a> — Alias de sodium_crypto_box_publickey_from_secretkey</li><li><a href="function.sodium-crypto-scalarmult-ristretto255.php">sodium_crypto_scalarmult_ristretto255</a> — Calcule un secret partag&eacute;</li><li><a href="function.sodium-crypto-scalarmult-ristretto255-base.php">sodium_crypto_scalarmult_ristretto255_base</a> — Calcule la cl&eacute; publique &agrave; partir d'une cl&eacute; secr&egrave;te</li><li><a href="function.sodium-crypto-secretbox.php">sodium_crypto_secretbox</a> — Chiffrement authentifi&eacute; avec une cl&eacute; partag&eacute;e</li><li><a href="function.sodium-crypto-secretbox-keygen.php">sodium_crypto_secretbox_keygen</a> — G&eacute;n&egrave;re une cl&eacute; al&eacute;atoire pour sodium_crypto_secretbox</li><li><a href="function.sodium-crypto-secretbox-open.php">sodium_crypto_secretbox_open</a> — D&eacute;chiffrement authentifi&eacute; avec une cl&eacute; partag&eacute;e</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-init-pull.php">sodium_crypto_secretstream_xchacha20poly1305_init_pull</a> — Initialise un contexte secretstream pour le d&eacute;chiffrement</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-init-push.php">sodium_crypto_secretstream_xchacha20poly1305_init_push</a> — Initialise un contexte secretstream pour le chiffrement</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-keygen.php">sodium_crypto_secretstream_xchacha20poly1305_keygen</a> — G&eacute;n&egrave;re une cl&eacute; secretstream al&eacute;atoire.</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-pull.php">sodium_crypto_secretstream_xchacha20poly1305_pull</a> — D&eacute;chiffre un morceau de donn&eacute;es d'un flux chiffr&eacute;</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-push.php">sodium_crypto_secretstream_xchacha20poly1305_push</a> — Chiffre un morceau de donn&eacute;es pour qu'il puisse &ecirc;tre d&eacute;chiffr&eacute; dans une API de streaming</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-rekey.php">sodium_crypto_secretstream_xchacha20poly1305_rekey</a> — Pivote explicitement la cl&eacute; dans l'&eacute;tat secretstream</li><li><a href="function.sodium-crypto-shorthash.php">sodium_crypto_shorthash</a> — Calcule un hachage court d'un message et d'une cl&eacute;</li><li><a href="function.sodium-crypto-shorthash-keygen.php">sodium_crypto_shorthash_keygen</a> — Renvoie des octets al&eacute;atoires pour la cl&eacute;</li><li><a href="function.sodium-crypto-sign.php">sodium_crypto_sign</a> — Signe un message</li><li><a href="function.sodium-crypto-sign-detached.php">sodium_crypto_sign_detached</a> — Signe le message</li><li><a href="function.sodium-crypto-sign-ed25519-pk-to-curve25519.php">sodium_crypto_sign_ed25519_pk_to_curve25519</a> — Convertit une cl&eacute; publique Ed25519 en une cl&eacute; publique Curve25519</li><li><a href="function.sodium-crypto-sign-ed25519-sk-to-curve25519.php">sodium_crypto_sign_ed25519_sk_to_curve25519</a> — Convertit une cl&eacute; secr&egrave;te Ed25519 en une cl&eacute; secr&egrave;te Curve25519</li><li><a href="function.sodium-crypto-sign-keypair.php">sodium_crypto_sign_keypair</a> — G&eacute;n&egrave;re al&eacute;atoirement une cl&eacute; secr&egrave;te et une cl&eacute; publique correspondante</li><li><a href="function.sodium-crypto-sign-keypair-from-secretkey-and-publickey.php">sodium_crypto_sign_keypair_from_secretkey_and_publickey</a> — Rassemble une cl&eacute; secr&egrave;te et une cl&eacute; publique ensemble</li><li><a href="function.sodium-crypto-sign-open.php">sodium_crypto_sign_open</a> — V&eacute;rifie que le message sign&eacute; poss&egrave;de une signature valide</li><li><a href="function.sodium-crypto-sign-publickey.php">sodium_crypto_sign_publickey</a> — Extrait la cl&eacute; publique Ed25519 d'une paire de cl&eacute;s</li><li><a href="function.sodium-crypto-sign-publickey-from-secretkey.php">sodium_crypto_sign_publickey_from_secretkey</a> — Extrait la cl&eacute; publique Ed25519 de la cl&eacute; secr&egrave;te</li><li><a href="function.sodium-crypto-sign-secretkey.php">sodium_crypto_sign_secretkey</a> — Extrait la cl&eacute; secr&egrave;te Ed25519 d'une paire de cl&eacute;s</li><li><a href="function.sodium-crypto-sign-seed-keypair.php">sodium_crypto_sign_seed_keypair</a> — D&eacute;rive de mani&egrave;re d&eacute;terministe la paire de cl&eacute;s &agrave; partir d'une seule cl&eacute;</li><li><a href="function.sodium-crypto-sign-verify-detached.php">sodium_crypto_sign_verify_detached</a> — V&eacute;rifie la signature d'un message</li><li><a href="function.sodium-crypto-stream.php">sodium_crypto_stream</a> — G&eacute;n&egrave;re une s&eacute;quence d'octets d&eacute;terministe &agrave; partir d'une graine</li><li><a href="function.sodium-crypto-stream-keygen.php">sodium_crypto_stream_keygen</a> — G&eacute;n&egrave;re une cl&eacute; de chiffrement al&eacute;atoire pour sodium_crypto_stream</li><li><a href="function.sodium-crypto-stream-xchacha20.php">sodium_crypto_stream_xchacha20</a> — D&eacute;veloppe la cl&eacute; et le nonce en un flux de cl&eacute;s de bytes pseudo-al&eacute;atoires</li><li><a href="function.sodium-crypto-stream-xchacha20-keygen.php">sodium_crypto_stream_xchacha20_keygen</a> — Renvoie une cl&eacute; al&eacute;atoire s&eacute;curis&eacute;e</li><li><a href="function.sodium-crypto-stream-xchacha20-xor.php">sodium_crypto_stream_xchacha20_xor</a> — Chiffre une donn&eacute;e en utilisant un nonce et une cl&eacute; secr&egrave;te (sans authentification)</li><li><a href="function.sodium-crypto-stream-xchacha20-xor-ic.php">sodium_crypto_stream_xchacha20_xor_ic</a> — Chiffre un message en utilisant un nonce et une cl&eacute; secr&egrave;te (sans authentification)</li><li><a href="function.sodium-crypto-stream-xor.php">sodium_crypto_stream_xor</a> — Chiffre un message sans authentification</li><li><a href="function.sodium-hex2bin.php">sodium_hex2bin</a> — D&eacute;code une cha&icirc;ne binaire encod&eacute;e en hexad&eacute;cimal</li><li><a href="function.sodium-increment.php">sodium_increment</a> — Incr&eacute;mente un grand nombre</li><li><a href="function.sodium-memcmp.php">sodium_memcmp</a> — Teste l'&eacute;galit&eacute; en temps constant</li><li><a href="function.sodium-memzero.php">sodium_memzero</a> — Surcharge une cha&icirc;ne avec des caract&egrave;res NUL</li><li><a href="function.sodium-pad.php">sodium_pad</a> — Ajoute des donn&eacute;es de remplissage</li><li><a href="function.sodium-unpad.php">sodium_unpad</a> — Supprime les donn&eacute;es de remplissage</li></ul>
</div>
<?php manual_footer($setup); ?>