Open GoogleCodeExporter opened 9 years ago
Updated python to output all wire formats in
jtuley-keyczar-python-usekey-exposed
Original comment by jtu...@gmail.com
on 23 Jan 2013 at 1:29
Examples of usage for "usekey" that will produce all wire formats, if
implemented for C++/java along with issue 115, then test data production could
be produced and changed from a single borne shell script.
$KEYPROG usekey --location="${TESTDATA}/aes"
--destination="${TESTDATA}/aes/1.out" --format=crypt "This is some test data"
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.out" --format=sign "This is some test data"
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.timeout" --format=sign-timeout "This is some
test data" 2012-12-21T11:11:00Z
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.unversioned" --format=sign-unversioned "This
is some test data"
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.attached" --format=sign-attached "This is
some test data"
$KEYPROG usekey --location="${TESTDATA}/hmac"
--destination="${TESTDATA}/hmac/2.secret.attached" --format=sign-attached "This
is some test data" "secret"
$KEYPROG usekey --location="${TESTDATA}/rsa.public"
--destination="${TESTDATA}/rsa/2.session.material"
--destination2="${TESTDATA}/rsa/2.session.ciphertext" --format=crypt-session
"This is some test data"
$KEYPROG usekey --location="${TESTDATA}/rsa.public"
--location2="${TESTDATA}/dsa"
--destination="${TESTDATA}/rsa/2.signedsession.material"
--destination2="${TESTDATA}/rsa/2.signedsession.ciphertext"
--format=crypt-signedsession "This is some test data"
Original comment by jtu...@gmail.com
on 24 Jan 2013 at 3:24
Original issue reported on code.google.com by
jtu...@gmail.com
on 19 Jan 2013 at 12:31