php man page for blenc_encrypt

Query: blenc_encrypt

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

BLENC_ENCRYPT(3)							 1							  BLENC_ENCRYPT(3)

blenc_encrypt - Encrypt a PHP script with BLENC.

SYNOPSIS
string blenc_encrypt (string $plaintext, string $encodedfile, [string $encryption_key])
DESCRIPTION
Encrypt the plaintext content and write it into encodedfile
PARAMETERS
o $plaintext - A source code to encrypt. Does not need to contain opening/closing PHP tags o $encodedfile - The filename where BLENC will save the encoded source. o $encryption_key - The key that BLENC will use to encrypt plaintext content. If not given BLENC will create a valid key.
RETURN VALUES
BLENC will return the redistributable key that must be saved into key_file: the path of key_file is specified at runtime with the option blenc.key_file
EXAMPLES
Example #1 blenc_encrypt(3) example <?php /* read the PHP source code */ $source_code = file_get_contents("my_source_to_protect.php"); /* create the encrypted version */ $redistributable_key = blenc_encrypt($source_code, "my_source_encoded.php"); /* read which is the key_file */ $key_file = ini_get('blenc.key_file'); /* save the redistributable key */ file_put_contents($key_file, $redistributable_key, FILE_APPEND); ?> PHP Documentation Group BLENC_ENCRYPT(3)
Related Man Pages
wanboot_keymgmt(1m) - opensolaris
wanboot_keymgmt(1m) - sunos
gtk2::printsettings(3) - suse
glib::keyfile(3) - suse
php_strip_whitespace(3) - php
Similar Topics in the Unix Linux Community
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun