Top Level Namespace

Defined Under Namespace

Modules: Krypton

Constant Summary collapse

TASKS_HELP =
%Q{    encrypt                             Encrypt the message with the given key (AES).
    decrypt                             Decrypt the message with the given key (AES).
    hash                                Hash a given message with SHA256.
    uuid                                Generate a random UUID.
    totp                                Generate a Time-based One Time Password.

  #{Paint['Examples', '#95a5a6']}
    #{Paint['$ krypton encrypt "mymessage" "mykey"', '#2ecc71']} #{Paint['=> ckhJWXcyTE1leENLOWpBQzJWbElMdz09Cg==', '#95a5a6']}
    #{Paint['$ krypton hash "mymessage"', '#2ecc71']} => #{Paint['S3ONp9WM7/rCMeuUnvWDzp5dxbuSVsOV6bI5AJvRqCc=', '#95a5a6']}
    #{Paint['$ krypton totp "mygreatsecret"']} => #{Paint['778501', '#95a5a6']}
}
VERSION =
"0.1.6"
AUTHORS =
{
  'Carter Brainerd' => '0xCB[at]protonmail[dot]com'
}

Instance Method Summary collapse

Instance Method Details

#vprint(*args) ⇒ Object



2
3
4
# File 'lib/core/text.rb', line 2

def vprint(*args)
 puts args if $verbose
end