Sie sind nicht angemeldet.

Douglas Rhiner

Fortgeschrittener

  • »Douglas Rhiner« ist der Autor dieses Themas

Beiträge: 141

Wohnort: San Anselmo, CA

Beruf: Code-Slave

  • Nachricht senden

1

Dienstag, 27. September 2011, 17:25

KRProtect dynamically generated XML?

Is there a way to encrypt dynamically?
My XML is generated via PHP from a MySQL database.

Is there any documentation for KRProtect?

2

Dienstag, 27. September 2011, 17:31

Hi,

there is the "kencrypt" tool - this one can be called from command line or script/batch files to encrypt files,
just start the tool at command line to see its options and parameters,
e.g.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
kencrypt 1.0.8.14 (build 2011-09-12)
	- encrypt files for usage in krpano

syntax: kencrypt [options] inputfiles

 inputfiles ... any files (placeholder * allowed)

options:
 -h5	... use a HTML5/Javascript compatible encryption (for xml,js plugins only)
 -ow	... overwrite original files
 -rn	... rename original files
 -in=#  ... set input filename manually
 -out=# ... set output filename manually


best regards,
Klaus

Beiträge: 602

Wohnort: Sachsen

Beruf: Webdesigner- und entwickler sowie Fotodesigner

  • Nachricht senden

3

Dienstag, 27. September 2011, 18:06

Hi Klaus,
is there a way to encrypt it from php ?

4

Dienstag, 27. September 2011, 18:18

Hi,

yes, see above, just call the kencrypt tool from php (e.g. via exec )
depending on your server type you need to use the windows or the linux version of the tool,

best regards,
Klaus

Beiträge: 602

Wohnort: Sachsen

Beruf: Webdesigner- und entwickler sowie Fotodesigner

  • Nachricht senden

5

Mittwoch, 28. September 2011, 07:58

ok, thanks, but, exec is not available on my server :-(