PHP: caesar cipher凯撒密码加解密算法(附完整源码)

PHP: caesar cipher凯撒密码加解密算法

<?php

function encrypt(string $text, int $shift): string
{
   
    $encryptedText = ''; // Empty string to store encryp