Class: Unisec::CLI::Commands::Confusables::Randomize

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/unisec/cli/confusables.rb

Overview

Command unisec confusables randomize

Example:

$ unisec confusables randomize noraj
Original:    noraj
Transformed: ΥΌΰ»π˜³πœΆπ™Ÿ
…

Instance Method Summary collapse

Instance Method Details

#call(str: nil) ⇒ Object

Replace all characters from a string with random confusables when possible

Parameters:

  • str (String) (defaults to: nil)

    Unicode string



56
57
58
# File 'lib/unisec/cli/confusables.rb', line 56

def call(str: nil, **)
  Unisec::Confusables.randomize_display(str)
end