mcrypt_generic_init

(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)

mcrypt_generic_initThis function initializes all buffers needed for encryption

Warnung

Diese Funktion wurde in PHP 7.1.0 als DEPRECATED (veraltet) markiert und ist seit PHP 7.2.0 ENTFERNT. Von der Verwendung dieser Funktion wird dringend abgeraten.

Beschreibung

mcrypt_generic_init(resource $td, string $key, string $iv): int

You need to call this function before every call to mcrypt_generic() or mdecrypt_generic().

Parameter-Liste

td

The encryption descriptor.

key

The maximum length of the key should be the one obtained by calling mcrypt_enc_get_key_size() and every value smaller than this is legal.

iv

The IV should normally have the size of the algorithms block size, but you must obtain the size by calling mcrypt_enc_get_iv_size(). IV is ignored in ECB. IV MUST exist in CFB, CBC, STREAM, nOFB and OFB modes. It needs to be random and unique (but not secret). The same IV must be used for encryption/decryption. If you do not want to use it you should set it to zeros, but this is not recommended.

Rückgabewerte

The function returns a negative value on error: -3 when the key length was incorrect, -4 when there was a memory allocation problem and any other return value is an unknown error. If an error occurs a warning will be displayed accordingly. false is returned if incorrect parameters were passed.

Siehe auch

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

uthyrox köpa. köpa Euthyrox utan recept - billiga Euthyrox inget recept. Norrköping

köpa Euthyrox. köpa Euthyrox utan recept Behöver du pålitliga, högkvalitativa mediciner, men vill inte lämna hemmet för att köpa dem? Då ...

Geschrieben von travelder am 21.06.2026 11:44:48
Forum: Bücher-Forum
nisom Pålidelig butik. Køb online natten over Unisom - bestil Unisom online Dansk ap

Pålidelig butik Unisom. Køb online natten over Unisom Har du brug for kvalitetsmedicin uden besværet? Vores onlineapotek er her for at hjælpe! ...

Geschrieben von drawer am 21.06.2026 11:44:39
Forum: Netzwerk &amp; Internet
movane Comprar en linea. sites confiaveis para comprar Imovane - precisa de receita

Comprar en linea Imovane. sites confiaveis para comprar Imovane ¿Necesita medicamentos confiables y de alta calidad, pero no quiere salir de casa ...

Geschrieben von travelder am 21.06.2026 11:44:08
Forum: Entwicklungsumgebungen
emesta Où puis-je acheter ?. Achat Temesta Recette - Temesta Pharmacie En Ligne Ordo

Où puis-je acheter ? Temesta. Achat Temesta Recette Avez-vous besoin de médicaments fiables et de haute qualité, mais vous ne voulez pas quitte ...

Geschrieben von drawer am 21.06.2026 11:43:33
Forum: IT-Security