# Example usage: input_file = 'example.gem' output_file = 'decrypted_example.gem' decryption_key = 'my_decryption_key'
Security is the primary driver for using encryption in the Ruby ecosystem. Standard Gemfiles are often stored in public or shared private repositories. If a project uses a private gem server that requires an API key, placing that key directly in a plain-text Gemfile is a major security risk. gem file decryptor
decryptor = GemFileDecryptor.new(encrypted_gem_file, encryption_key) decrypted_gem_file = decryptor.decrypt # Example usage: input_file = 'example