class AiTools::Utilize_Steghide

Public Class Methods

steghide_embed() click to toggle source
# File lib/ai_tools.rb, line 95
def self.steghide_embed
  require "espeak"
  
  speech = ESpeak::Speech.new( "Name your text file." )
  speech.speak
  
  print " Name Text File >> "
  text_file = gets.chomp
  
  system("nano #{text_file}")

  speech = ESpeak::Speech.new( "Which image do you want to embed in?" )
  speech.speak
  
  print " Embed in which image? >> "
  image = gets.chomp
  
  system("steghide embed -cf #{image}.jpg -ef embeds/#{text_file}")
end
steghide_extract() click to toggle source
# File lib/ai_tools.rb, line 115
def self.steghide_extract
  require "espeak"
  
  speech = ESpeak::Speech.new( "What image do you wish to extract?" )
  speech.speak

  print " Extract which image? >> "
  image = gets.chomp
  
  system("steghide extract -sf embeds/#{image}")
end