PHP script implementation of Caesar Plus (solution) secret

Source: Internet
Author: User

Original: PHP script implementation of Caesar (solution) Secret

Today, I met a question about Caesar's encryption when I was watching a CTF, and then I saw that there was a sentence in write up.

Immediately feel this topic a bit pit ah, this or write a script to run to push to when Ah, so again this article:

1<?PHP2 $text= "The text"; Text that needs to be decrypted3 Echo $text." ;4  for($j= 0;$j<25;$j++)5 {6  for($i= 0;$i<strlen($text);$i++)7 {8      $te=Ord($text[$i]) +1;9      if($te==91)//If the lowercase letter is 123Ten      { One      $te= ' 65 '; If it's a lowercase letter, it's A      } -       - Echo $text[$i]=CHR($te); the } - Echo"<br>"; -  - } +?>

PHP script implementation of Caesar Plus (solution) secret

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.