sodium_crypto_stream_xchacha20_xor

(PHP 8 >= 8.1.0)

sodium_crypto_stream_xchacha20_xorEncrypts a message using a nonce and a secret key (no authentication)

Beschreibung

sodium_crypto_stream_xchacha20_xor(string $message, string $nonce, string $key): string

Encrypts a message using a nonce and a secret key (no authentication).

Achtung

This encryption is unauthenticated, and does not prevent chosen-ciphertext attacks. Make sure to combine the ciphertext with a Message Authentication Code, for example with sodium_crypto_aead_xchacha20poly1305_ietf_encrypt() function, or sodium_crypto_auth().

Parameter-Liste

message

The message to encrypt.

nonce

24-byte nonce.

key

Key, possibly generated from sodium_crypto_stream_xchacha20_keygen().

Rückgabewerte

Encrypted message.

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

arisoprodol Comprar. qual a cor da receita para comprar Carisoprodol - qual receita

Comprar Carisoprodol. qual a cor da receita para comprar Carisoprodol ¿Busca medicamentos de primera calidad sin salir de casa? ¡No busque más! ...

Geschrieben von travelder am 17.06.2026 05:22:08
Forum: Entwicklungsumgebungen
opiclone Buy legally. Zopiclone next day - Buy Zopiclone without dr approval. Peterb

Buy legally Zopiclone. Zopiclone next day Need quality meds without the hassle? Our online pharmacy is here to help! Browse a wide range of top-no ...

Geschrieben von drawer am 17.06.2026 05:21:48
Forum: Ankündigungen
unesta Comprimés. Lunesta Pharmacie En Ligne Suisse - Lunesta Pharmacie En Ligne Ho

Comprimés Lunesta. Lunesta Pharmacie En Ligne Suisse Avez besoin de médicaments de haute qualité ? Nous sommes là pour vous ! Notre pharmacie ...

Geschrieben von drawer am 17.06.2026 05:21:14
Forum: IT-Security
rovera Sin receta. onde comprar provera pela internet - precio provera gotas farmaci

Sin receta provera. onde comprar provera pela internet ¿Necesita medicamentos de calidad sin complicaciones? ¡Nuestra farmacia en línea está a ...

Geschrieben von travelder am 17.06.2026 05:20:41
Forum: Entwicklungsumgebungen