Skip to content

Commit

Permalink
Show the type of password used for decryption in hexapdf info
Browse files Browse the repository at this point in the history
  • Loading branch information
gettalong committed Jan 4, 2024
1 parent f24af24 commit 65df8fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/hexapdf/cli/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def output_info(file) # :nodoc:
details = doc.security_handler.encryption_details
data = "yes (version: #{details[:version]}, key length: #{details[:key_length]}bits)"
output_line("Encrypted", data)
output_line(" Used Password", doc.security_handler.decryption_password_type)
output_line(" String algorithm", details[:string_algorithm].to_s)
output_line(" Stream algorithm", details[:stream_algorithm].to_s)
output_line(" EFF algorithm", details[:embedded_file_algorithm].to_s)
Expand Down

0 comments on commit 65df8fd

Please sign in to comment.