Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
How to set a password for the archive? paszlib TZipper
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Initialization & finaliza...
by
Martin_fr
[
Today
at 09:12:13 pm]
Getting results from sql ...
by
CraigC
[
Today
at 08:15:54 pm]
Hello! Anything new?
by
440bx
[
Today
at 07:51:50 pm]
GTK3 : Icons have borders...
by
Schmitty2005
[
Today
at 06:46:37 pm]
CryptoLib4Pascal
by
Xor-el
[
Today
at 06:17:32 pm]
Extended Module Player
by
Gigatron
[
Today
at 05:32:06 pm]
CONCAT formula
by
wp
[
Today
at 05:27:43 pm]
could Ardour's YTK be use...
by
robert rozee
[
Today
at 05:27:15 pm]
[AGGPas] Difference betwe...
by
Roland57
[
Today
at 04:36:02 pm]
Questions about TFuncSeri...
by
wp
[
Today
at 03:05:31 pm]
declaring Array
by
Thaddy
[
Today
at 01:24:11 pm]
Problem with drawing orde...
by
wp
[
Today
at 11:32:56 am]
TChart: Wrong default val...
by
wp
[
Today
at 11:30:54 am]
Text Fill (Memo)
by
paweld
[
Today
at 09:09:13 am]
Qt6/Wayland clipboard: pa...
by
AlexTP
[
Today
at 08:56:58 am]
Pocketbase
by
PierceNg
[
Today
at 06:29:04 am]
ADUG Symposium 2026
by
Mathias Burbach
[
Today
at 04:45:57 am]
Any way to "embed" Window...
by
jamie
[
Today
at 12:55:37 am]
DataPort StopBits and Flo...
by
Thaddy
[March 13, 2026, 02:14:16 pm]
Lazarus Bugfix Release 4....
by
JuhaManninen
[March 13, 2026, 10:05:03 am]
88 year D. Knuth changes ...
by
Thaddy
[March 13, 2026, 07:31:38 am]
interface and GUID someth...
by
egsuh
[March 13, 2026, 03:31:00 am]
CADSys4 3D.
by
maurog
[March 13, 2026, 01:00:05 am]
UOS - pre-compiled librar...
by
Fred vS
[March 13, 2026, 12:34:06 am]
Pipewire API
by
Fred vS
[March 12, 2026, 10:11:02 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to set a password for the archive? paszlib TZipper (Read 1243 times)
viterik
Newbie
Posts: 2
How to set a password for the archive? paszlib TZipper
«
on:
March 02, 2023, 07:58:26 pm »
Please tell me. How to set a password for the archive? I use this library
https://fpcwiki.coderetro.net/paszlib/
Code: Pascal
[Select]
[+]
[-]
Uses
...
Zipper
,
FileUtil
var
AZipper
:
TZipper
;
TheFileList
:
TStringList
;
begin
MyDirectory
:
=
'C:\MyFolder'
;
AZipper
:
=
TZipper
.
Create
;
AZipper
.
Filename
:
=
'myzipfile.zip'
;
TheFileList
:
=
TStringList
.
Create
;
try
FindAllFiles
(
TheFileList
,
MyDirectory
)
;
AZipper
.
Entries
.
AddFileEntries
(
TheFileList
)
;
AZipper
.
ZipAllFiles
;
finally
TheFileList
.
Free
;
AZipper
.
Free
;
end
;
end
;
Logged
Nicole
Hero Member
Posts: 1308
Re: How to set a password for the archive? paszlib TZipper
«
Reply #1 on:
March 02, 2023, 08:08:16 pm »
Are you sure, you just want to set a password?
Encryption of the content would be better.
Encryption is not an easy task and there are many ways to do it.
Perhaps you may want to key in the keyword to find out, what way fits for you.
Logged
paweld
Hero Member
Posts: 1576
Re: How to set a password for the archive? paszlib TZipper
«
Reply #2 on:
March 02, 2023, 08:45:37 pm »
TZipper don't support password. Try Abbrevia component:
https://forum.lazarus.freepascal.org/index.php/topic,15462.msg83043.html#msg83043
Logged
Best regards / Pozdrawiam
paweld
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
How to set a password for the archive? paszlib TZipper
TinyPortal
© 2005-2018