Tag Archives | base64_decode
PHP: Methods to encrypt and decrypt with private key (part 3)

PHP: Methods to encrypt and decrypt with private key (part 3)

Please read PHP: Methods to encrypt and decrypt with private key (part 1) PHP: Methods to encrypt and decrypt with private key (part 2) Method 3: use xor encryption Example usage: result: It isn’t a nice result, we need to convert to a nice result: base64_encode Result: AAAAAAAAExoFFhsXRA== unpack Result: 000000000000131a05161b1744 To decrypt, we use […]

Read full story Comments { 0 }
PHP: Methods to encrypt and decrypt with private key (part 2)

PHP: Methods to encrypt and decrypt with private key (part 2)

Please read PHP: Methods to encrypt and decrypt with private key (part 1) Method 2: use arcfour algorithm Example usage: result: It isn’t a nice result, we need to convert to a nice result: base64_encode Result: 77cOFdy5O3YaciW/Zw== unpack Result: efb70e15dcb93b761a7225bf67 To decrypt, we use this code: We get the result: your password If we encrypt […]

Read full story Comments { 0 }
PHP: Methods to encrypt and decrypt with private key (part 1)

PHP: Methods to encrypt and decrypt with private key (part 1)

There are some methods to encrypt your data with a private key. Method 1: Note: your private key must have string length greater than 8. Example usage: result: ““0bhercjya In the resulting string has special characters. We will convert the resulting string into a nice result: base64_encode Result: YGBgYDBiaGVyY2p5YQ== unpack Result: 606060603062686572636a7961 To decrypt, we […]

Read full story Comments { 0 }