encryption

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
swan_x
Posts: 321
Joined: 08 Oct 2009 12:27

encryption

Post by swan_x »

we have encryption function on xy?
or does anyone here know an existing script to do this?

highend
Posts: 13316
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: encryption

Post by highend »

formatlist()
param On format x: Seeds the randomizer used for shuffling. Can be any number. If a seed is passed, the randomizer always generates the same random sequence for this seed.
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 321
Joined: 08 Oct 2009 12:27

Re: encryption

Post by swan_x »

hi highend, i think i understand that the formalist is only relative to text, or perhaps also to file?

highend
Posts: 13316
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: encryption

Post by highend »

It's text only
One of my scripts helped you out? Please donate via Paypal

jaywalker32
Posts: 205
Joined: 27 May 2014 05:24

Re: encryption

Post by jaywalker32 »

I use this small script to quickly encrypt list of files or folders, using gpg (https://gnupg.org/download/index.html)

Any folders are added to a zip file first before encrypting.


Code: Select all

	foreach($file, <selitems |>){
		if(exists($file) == 2){  //if folder, add to zip first
			zip_add(gpc($file, "base").".zip", $file);
			$file = gpc($file, "base").".zip";
		}
		run "gpg -er ""jaywalkerr32"" """.gpc($file, "name")."""", , 1, 2;
	}
and for decrypting

Code: Select all

	foreach($file,<selitems |>){
		run "gpg -do """.gpc($file, "base").""" """.$file."""", , 1, 2;	
	}

swan_x
Posts: 321
Joined: 08 Oct 2009 12:27

Re: encryption

Post by swan_x »

oh great jaywalker32!
tanxs for this share

Post Reply