A PHP based library to de- and encrypt CrossCode savestrings.
- PHP:
^8.0 - OpenSSL
use C2DL\CC\Save_Crypto\Save_Crypto_Service;
// [...]
$save = Save_Crypto_Service::decrypt_save($savestring, $pass);
$savestringcontains the encrypted savestring with or without[-!_0_!-].$passcontains the passprase that is used to encrypt CrossCode-saves.- Returns the decrypted Save
use C2DL\CC\Save_Crypto\Save_Crypto_Service;
// [...]
$save = Save_Crypto_Service::encrypt_save($savedata, $pass);
$savedatacontains the json based save-data that should be encrypted.$passcontains the passprase that is used to encrypt CrossCode-saves.- Returns the encrypted Save