implemented coodle ical comp and corresponding endpoint

This commit is contained in:
adisposkofh
2026-07-22 16:03:29 +02:00
parent d89ea5947e
commit cb985c3c25
8 changed files with 218 additions and 2 deletions
+14 -1
View File
@@ -25,4 +25,17 @@ class CryptLib
return $cipher->encrypt($value);
}
}
public static function RIJNDAEL_256_ECB_DECRYPT($value, $key, $paddingDisabled = false)
{
if (isEmptyString($value) || isEmptyString($key)) return null;
$cipher = new Rijndael(Rijndael::MODE_ECB);
$cipher->setBlockLength(256);
$cipher->setKey($key);
if ($paddingDisabled === true) $cipher->disablePadding();
return $cipher->decrypt($value);
}
}