Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 915 Bytes

README.md

File metadata and controls

57 lines (45 loc) · 915 Bytes

How to use

py ./auto-install.py

see version

pykspc -v

see help

pykspc -h

example (cli)

Encrypt

pykspc encrypt "./file.txt" 91b62c5e9f438fa18d03e8d486f37c5f746098c2fd9854c74f85b65ec6f71ae9 -k

Decrypt

pykspc decrypt "./file.txt" 91b62c5e9f438fa18d03e8d486f37c5f746098c2fd9854c74f85b65ec6f71ae9 -k

Genkey

pykspc genkey

Help

pykspc -h

example (with php)

<?php

const PYKSPC_KEY = "91b62c5e9f438fa18d03e8d486f37c5f746098c2fd9854c74f85b65ec6f71ae9"; 
$command = 'pykspc ".\main.py" "./test.ksp" '.PYKSPC_KEY.' -e -k -Mi -b';

$output = [];
$return_var = 0;
exec($command, $output, $return_var);


if ($return_var == true) {
    echo "file crypted";
} else {
    echo "Il y a eu une erreur lors de l'exécution de la commande.";
    echo "\nDétails de l'erreur : " . implode("\n", $output);
}

?>