Skip to content

Instantly share code, notes, and snippets.

View ihrifat2's full-sized avatar
🎯
Focusing

Imran Hadid ihrifat2

🎯
Focusing
View GitHub Profile
@richjenks
richjenks / encrypt-decrypt.php
Last active June 14, 2023 14:52
Simple PHP Encryption & Decryption
<?php
/**
* Simple PHP Encryption functions
*
* Attempts to be as secure as possible given:
*
* - Key can be any string
* - No knowledge of encryption is required
* - Only key and raw/encrypted string is needed at each end