🆗7⃣🍩🚒🍍😖🍬🌸🍶🌔🍩😷
tinkering with an idea...
not a replacement for actual PGP signed messages :smiles: but littering with emojis is maybe less "noticeable/annoying" than PGP sigs
using emoji to verify social media posts, sincce some corps have decided to imitate their users using AI, it's hard to know anymore what you are "saying" or "recommending" to influence your peoples lol.
this uses 4-byte emoji which may cause some issue somewhere.
//crc.php
$time = time();
$hb = dechex($time);
$salt = random_int(time(),time()*2);
$pwd = $_POST['pwd'];
$msg = $_POST['msg'];
$smsg = preg_replace('/\s+/', '', $msg);
$crc = crc32(hash('sha256',$hb.$salt.$pwd.$smsg));
$calc = $hb.dechex($salt).dechex($crc);
$f=json_decode(file_get_contents('4be.txt'),true);
echo '<pre>'.$msg."\n\n";
for ($i=0;$i<24;$i+=2)
{
$cb = substr($calc,$i,2);
$key = intval(hexdec($cb));
echo $f[$key];
}
echo "\n</pre>";
//chk.php
$pwd = $_POST['pwd'];
$msg = $_POST['msg'];
$smsg = preg_replace('/\s+/', '', $msg);
$chk = $_POST['chk'];
$f=json_decode(file_get_contents('4be.txt'),true);
$answers = array();
for ($i=0;$i<strlen($chk);$i+=4)
{
echo substr($chk,$i,4).' ';
$key = array_search (substr($chk,$i,4), $f);
$answers[]=dechex($key).' ';
}
$time = hexdec($answers[0].$answers[1].$answers[2].$answers[3]);
$salt = hexdec($answers[4].$answers[5].$answers[6].$answers[7]);
$crc = hexdec($answers[8].$answers[9].$answers[10].$answers[11]);
echo '<p>Time: '.$time.' '.date(DATE_RFC2822,$time).'</p>';
echo '<p>Salt: '.$salt.'</p>';
echo '<p>CRC: '.$crc.'</p>';
$validate = crc32(hash('sha256',dechex($time).$salt.$pwd.$smsg));
$valid = ' <span style="color:Red;">NO MATCH</span>';
if ($validate==$crc) $valid = ' <span style="color:Green;">VALID</span> ';
echo '<p>Calculated CRC: '. $validate.' '.$valid.'</p>
';
echo '<p>Message:</p><pre>'.$msg."\n\n";
echo "</pre>";