How to install OpenVPN on Linux

You can easily install OpenVPN on Debian, Ubuntu and CentOS by using only one command line: Result: Finish, now you retype that command to create new account, remove account, uninstall OpenVPN Result: Looks like OpenVPN is already installed If you get the error during the installation: You can easily fix it by using these command […]

Read full story Comments { 0 }

RC5 block cipher implement in PHP and Javascript – part 2

Read part 1: RC5 block cipher implement in PHP and Javascript Application of this block cipher method for stream cipher: There are many methods, but we can provide the method below: Split your string into many block with 64 bits (8 characters), then use this block cipher method. We can use the method Null-padding for […]

Read full story Comments { 0 }

PHP, JS: How to detect Safari browser

PHP Example: Result: Javascript

Read full story Comments { 0 }

RC5 block cipher implement in PHP and Javascript

In cryptography, RC5 is a symmetric-key block cipher notable for its simplicity. Designed by Ronald Rivest in 1994. RC5 encryption and decryption both expand the random key into 2(r+1) words that will be used sequentially (and only once each) during the encryption and decryption processes. All of the below comes from Rivest’s revised paper on […]

Read full story Comments { 0 }

XXTEA block cipher implement in PHP and Javascript

In cryptography, Corrected Block TEA (often referred to as XXTEA) is a block cipher designed to correct weaknesses in the original Block TEA. Source: https://en.wikipedia.org/wiki/XXTEA We provide some function implement in PHP and Javascript: PHP Javascript: Example: Try it yourself Read more: TEA block cipher implement in PHP and Javascript Test vectors TEA XTEA block […]

Read full story Comments { 0 }

XTEA block cipher implement in PHP and Javascript

In cryptography, XTEA (eXtended TEA) is a block cipher designed to correct weaknesses in TEA. The cipher’s designers were David Wheeler and Roger Needham of the Cambridge Computer Laboratory, and the algorithm was presented in an unpublished technical report in 1997 (Needham and Wheeler, 1997). It is not subject to any patents.[1] Like TEA, XTEA […]

Read full story Comments { 0 }

Test vectors TEA

Read first: TEA block cipher implement in PHP and Javascript We provide some test vectors for TEA: Here is the code we use: Function strToHex

Read full story Comments { 0 }

TEA block cipher implement in PHP and Javascript

In cryptography, the Tiny Encryption Algorithm (TEA) is a block cipher notable for its simplicity of description and implementation, typically a few lines of code. It was designed by David Wheeler and Roger Needham of the Cambridge Computer Laboratory; it was first presented at the Fast Software Encryption workshop in Leuven in 1994, and first […]

Read full story Comments { 1 }

Spritz stream cipher implement in PHP and Javascript

Ron Rivest and Jacob Schuldt have proposed replacing RC4 with an improved and slightly modified version dubbed Spritz. The value w, is relatively prime to the size of the S array (256). We choose w=1. You can choose any odd value like 1,3,5,7,9… Javascript: Example: Result: Try it yourself

Read full story Comments { 0 }

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 }