You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,27 @@ Any attempt to move about in a zip file opened with `Zip::InputStream` could res
205
205
206
206
Rubyzip supports reading/writing zip files with traditional zip encryption (a.k.a. "ZipCrypto"). AES encryption is not yet supported. It can be used with buffer streams, e.g.:
207
207
208
+
#### Version 2.x
209
+
210
+
```ruby
211
+
# Writing.
212
+
enc =Zip::TraditionalEncrypter.new('password')
213
+
buffer =Zip::OutputStream.write_buffer(::StringIO.new(''), enc) do |output|
0 commit comments