Skip to content

Commit

Permalink
Added missing examples for File.aes256_encrypt and `File.aes256_dec…
Browse files Browse the repository at this point in the history
…rypt`.
  • Loading branch information
postmodern committed Jun 9, 2023
1 parent 66278dc commit f3cc768
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ronin/support/crypto/core_ext/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,10 @@ def self.aes128_decrypt(path, block_size: 16384, output: nil, **kwargs,&block)
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
#
# @example
# File.aes256_encrypt('file.txt', password: 's3cr3t')
# # => "..."
#
# @since 1.0.0
#
def self.aes256_encrypt(path, block_size: 16384, output: nil, **kwargs,&block)
Expand Down Expand Up @@ -610,6 +614,10 @@ def self.aes256_encrypt(path, block_size: 16384, output: nil, **kwargs,&block)
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
#
# @example
# File.aes256_decrypt('encrypted.bin', password: 's3cr3t')
# # => "..."
#
# @since 1.0.0
#
def self.aes256_decrypt(path, block_size: 16384, output: nil, **kwargs,&block)
Expand Down

0 comments on commit f3cc768

Please sign in to comment.