How to use php encryption and decryption function
This article mainly introduces how to use the php encryption and decryption function, the article introduces in great detail, has a certain reference value, interested friends must read it!
The code is as follows:
Function encode_pass ($tex,$key,$type= "encode") {
$chrArr=array ('axiomagy, pachydermology, pachydermology, pantilissima, pantilissima, pantilexia, pantilishy, wishy-washy, wishy-washy-wishy-wishy-washy
'Achilles recalcitrants', 'Bandeliers', 'Cummings', 'Ebblers', 'Fidelicales', 'Gongpi', 'Hiddles', 'Iyphemales', 'Kongyao', 'Kongyuo','M', 'Nobles,' 'Ops,' 'Rongyao,' 'Rongyao,' 'Scholars,' 'Uygur,' 'Uygur,' 'Vals,' 'Wales,' 'X.'
'0,1, 2, 3, 4, 5, 6, 7, 8, 9.)
If ($type== "decode") {
If (strlen ($tex)