2
0

add test sql injection, add protectin agains it (lvl. 1)

This commit is contained in:
Schuledaniel
2026-02-04 14:41:18 +01:00
parent ebee549aab
commit 9f9625ff58
3 changed files with 31 additions and 11 deletions

View File

@@ -2,11 +2,11 @@
function vigenere($text,$shift){
function vigenere($text,$code){
$result = "";
for ($i = 0; $i < strlen($text); $i++){
$shift = $shift[$i%strlen($shift)];
$shift = $code[$i%strlen($code)-1];
$letter = $text[$i];
$letter = ord($letter);