From 3bd448c944ec664073bb4018ac359be614b373c7 Mon Sep 17 00:00:00 2001 From: stpeter Date: Wed, 5 Jan 2011 11:51:04 -0700 Subject: [PATCH] example commands --- xep-0143.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xep-0143.xml b/xep-0143.xml index 68776ae9..0c9b7f15 100644 --- a/xep-0143.xml +++ b/xep-0143.xml @@ -222,13 +222,13 @@ ]]> -

Some examples (e.g., SASL examples) include strings that are encoded using Base64 (see &rfc3548;). An easy way to generate these is to use the OpenSSL "enc" command to generate the base64-encoded equivalent. For example, the following command will generate the base64-encoded string "YmFyZEBzaGFrZXNwZWFyZS5saXQ=":

- -echo -n 'bard@shakespeare.lit' | openssl enc -base64 -

Some examples (e.g., avatar examples) include strings that are SHA-1 hashes (see &rfc3174;). An easy way to generate these is to use the OpenSSL "dgst" command to generate the SHA-1 hash. For example, the following command will generate the SHA-1 hash "9f5f9fdab9da7fc12e3c52b258acbcb4bb8e66ac":

-echo -n 'bard@shakespeare.lit' | openssl dgst -sha1 +echo -n 'bard@shakespeare.lit' | openssl dgst -hex -sha1 + +

Some examples (e.g., SASL examples) include strings that are encoded using Base64 (see &rfc3548;). An easy way to generate these is to use the OpenSSL "enc" command to generate the base64-encoded equivalent. For example, the following command will generate the base64-encoded string "YmFyZEBzaGFrZXNwZWFyZS5saXQ=":

+ +echo -n 'bard@shakespeare.lit' | openssl enc -nopad -base64