Class: AiTools::Utilize_Steghide
- Inherits:
-
Object
- Object
- AiTools::Utilize_Steghide
- Defined in:
- lib/ai_tools.rb
Class Method Summary collapse
Class Method Details
.steghide_embed ⇒ Object
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/ai_tools.rb', line 95 def self. 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 ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 |
# 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 |