Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ShitCrypt
- {
- public static function encrypt(string $data, int $key): string
- {
- $numbers = [];
- for ($i = 0; $i < strlen($data); $i++) {
- $numbers[] = dechex(ord($data[$i]) + $key + $i);
- }
- return join('-', $numbers);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment