Sha256: 4a8aee2e4689bca79dac90d58d91a4aea8e274f29e5eb48eba10eba2329787d8
Contents?: true
Size: 401 Bytes
Versions: 50
Compression:
Stored size: 401 Bytes
Contents
module Flydata module Command class Encrypt < Base def run dp = flydata.data_port.get key = dp['key'] text = ask_password encrypted_text = Flydata::Util::Encryptor.encrypt(text, key) puts "Encrypted text: #{encrypted_text}" end private def ask_password ask("Enter text: ") { |x| x.echo = "*" } end end end end
Version data entries
50 entries across 50 versions & 1 rubygems