lib/io_streams/pgp.rb in iostreams-0.15.0 vs lib/io_streams/pgp.rb in iostreams-0.16.0

- old
+ new

@@ -42,10 +42,10 @@ # # it is decrypting the file intended for the recipient. # IOStreams::Pgp::Reader.default_passphrase = 'receiver_passphrase' # # # Generate encrypted file for a specific recipient and sign it with senders credentials # data = %w(this is some data that should be encrypted using pgp) - # IOStreams.writer('secure.gpg', pgp: {recipient: 'receiver@example.org'}) do |output| + # IOStreams.writer('secure.gpg', streams: {pgp: {recipient: 'receiver@example.org'}}) do |output| # data.each { |word| output.puts(word) } # end # # # Decrypt the file sent to `receiver@example.org` using its private key # # Recipient must also have the senders public key to verify the signature