lib/bolt/application.rb
# Encrypt plaintext using the configured secret plugin.
#
# @param plaintext [String] The plaintext to encrypt.
# @param plugin [String] The secret plugin to use.
# @return [Boolean]
#
Encrypt plaintext using the configured secret plugin.
Encrypt plaintext using the configured secret plugin .
def encrypt_secret(plaintext, plugin: 'pkcs7')
      unless plugins.by_name(plugin)
        raise Bolt::Plugin::PluginError::Unknown, plugin
      end
      plugins.get_hook(plugin, :secret_encrypt)
             .call('plaintext_value' => plaintext)
    end
def encrypt_secret ( plaintext , plugin : 'pkcs7' ) unless plugins . by_name ( plugin ) raise Bolt :: Plugin :: PluginError :: Unknown , plugin end plugins . get_hook ( plugin , :secret_encrypt ) . call ( 'plaintext_value' => plaintext ) end
Encrypt plaintext using the configured secret plugin.
Encrypt plaintext using the configured secret plugin .
None
Boolean
plaintext
The plaintext to encrypt.
The plaintext to encrypt .
plugin
The secret plugin to use.
The secret plugin to use .