Skip to content

Instantly share code, notes, and snippets.

View sogrbilja's full-sized avatar

Dejan sogrbilja

View GitHub Profile
@sogrbilja
sogrbilja / PseudoCrypt.php
Last active March 14, 2024 18:00
PseudoCrypt with user friendly characters
<?php
//I want to use set of characters that are easy to spell out -> 123456789ABCDEFGHIJKLMNPRSTUVZ
class PseudoCrypt {
/* Key: Next prime greater than 62 ^ n / 1.618033988749894848 */
/* Value: modular multiplicative inverse */
/*