Skip to content

Instantly share code, notes, and snippets.

View Jackysi's full-sized avatar

Jaka Prašnikar Jackysi

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