src/Core/LTIX.php
public static function encrypt_secret($secret)
    {
        global $CFG;
        if ( startsWith($secret,'AES::') ) return $secret;
        $encr = AesCtr::encrypt($secret, $CFG->cookiesecret, 256) ;
        return 'AES::'.$encr;
    }
public static function encrypt_secret($secret)
    {
        global $CFG;
        if ( startsWith($secret,'AES::') ) return $secret;
        $encr = AesCtr::encrypt($secret, $CFG->cookiesecret, 256) ;
        return 'AES::'.$encr;
    }
public static function encrypt_secret ( $ secret ) { global $ CFG ; if ( startsWith ( $ secret , 'AES::' ) ) return $ secret ; $ encr = AesCtr :: encrypt ( $ secret , $ CFG -> cookiesecret , 256 ) ; return 'AES::' . $ encr ; }
Encrypt a secret to put into the session
Encrypt a secret to put into the session