This is a CLI utility to facilitate GLOME operations from the command line.
Generating two key pairs:
$ glome genkey | tee Alice | glome pubkey >Alice.pub
$ glome genkey | tee Bob | glome pubkey >Bob.pubAlice calculates a tag and send it together with message and counter to Bob:
$ tag=$(echo "Hello world!" | glome tag --key Alice --peer Bob.pub)
$ echo "${tag?}"
_QuyLz_nkj5exUJscocS8LDnCMszvSmp9wpQuRshi30=Bob can verify that the tag matches:
$ echo "Hello world!" | glome verify --key Bob --peer Alice.pub "${tag?}"
$ echo $?
0Both parties can agree to shorten the tag to reduce the protocol overhead:
$ echo "Hello world!" | glome verify --key Bob --peer Alice.pub "${tag:0:12}"
$ echo $?
0CLI also supports ganerating tags for the GLOME Login requests:
$ glome login --key Bob v2/gZ1iVXtwP0yuWtTBYPmAUB2oAnzhsPl7FDbzgAyby_MX/my-server.local/shell=root/
MT_Zc-hucXRjTXTBEo53ehoeUsFn1oFyVadViXf-I4k=