Archive | PHP

RSS feed for this section

RC4+ stream cipher implement in PHP and Javascript

RC4+ is a modified version of RC4 with a more complex three-phase key schedule (taking about 3× as long as RC4, or the same as RC4-drop512), and a more complex output function which performs four additional lookups in the S array for each byte output, taking approximately 1.7× as long as basic RC4. We provide […]

Read full story Comments { 1 }

VMPC stream cipher implement in PHP and Javascript

VMPC (Variably Modified Permutation Composition) is a stream cipher similar to the well known and popular cipher RC4 designed by Ron Rivest. It was designed by Bartosz Zoltak, presented in 2004 at the Fast Software Encryption conference. VMPC is a modification of the RC4 cipher. We provide some function of VMPC stream cipher implement in […]

Read full story Comments { 1 }

RC4A cipher implement in PHP and Javascript

RC4A is one of RC4 variants. Souradyuti Paul and Bart Preneel have proposed an RC4 variant, which they call RC4A. We provide some function implement of RC4A cipher in PHP and Javascript: PHP Example: Result: Javascript Example: Result: Try it yourself

Read full story Comments { 1 }

RC4 implementation in PHP and Javascript

In cryptography, RC4 (Rivest Cipher 4 also known as ARC4 or ARCFOUR meaning Alleged RC4, see below) is a stream cipher. We provide some function RC4 in PHP and Javascript PHP: JS: Example: Result: Try it yourself Some RC4 variants RC4A cipher implement in PHP and Javascript VMPC stream cipher implement in PHP and Javascript […]

Read full story Comments { 0 }

PHP: how to convert ip address to binary string or hex string

With pure PHP, you can convert an IPv4 address to long with the function ip2long, but how to convert an Ipv6 address to long. You can’t do this in the 32bits system. You only convert an ip address to binary string or hex string with some method we provide below: Some example: Example 1: Result: […]

Read full story Comments { 0 }

PHP function ord of unicode character

PHP have function ord to find ASCII value of character. But PHP don’t support a function to find this value of unicode character. Now, we provider some method: Examples:

Read full story Comments { 0 }

PHP: Google translate token

Example: Result: Explain 1: view-source:https://translate.google.com/ you will see: The value of TKK is change, but i can be a fixed value like ‘406398.2087938574’ Explain 2: In the file: https://translate.google.com/translate/releases/twsfe_20161212_RC00/r/js/desktop_module_main.js you see: Explain 3: In the file: https://translate.google.com/translate/releases/twsfe_20161212_RC00/r/js/desktop_module_main.js you see:

Read full story Comments { 0 }

How to install Chilkat PHP on Linux

In this tutorial, i use PHP 5.4 and CentOS 32bits. Step 1: You can find other download at here For 32bits For 64bits Result: Step 2: decompress Result: Verify in the folder extract: Now change dir to the folder: chilkat-9.5.0-php-5.4-x86-linux Step 3: Copy chilkat_9_5_0.so to the PHP extensions directory. You can find the path of […]

Read full story Comments { 0 }

How to fix error: Cannot load Zend Extension Manager – it was built with configuration 1.2.0

If you get the error like: You can fix by follow theses steps: Step 1: Log into Kloxo controlpanel like Step 2: goto PHP config Step 3: disable Zend Click Update. Done.

Read full story Comments { 0 }

How to fix error: Failed loading /usr/lib/kloxophp/ioncube/ioncube_loader_lin_5.2.so

If you get the error like: You can fix by follow theses steps: Step 1: Log into Kloxo controlpanel like Step 2: goto PHP config Step 3: disable Ioncube Click Update. Done.

Read full story Comments { 0 }