Project

General

Profile

PSK Secret » History » Version 5

Tobias Brunner, 14.12.2011 17:48
0x and 0s documented

1 3 Martin Willi
h1. PSK Secret
2 1 Martin Willi
3 5 Tobias Brunner
A  preshared  secret  is  most  conveniently  represented  as  a  sequence  of  characters,  which is delimited  by double-quote characters (").  The sequence cannot contain  newline  or  double-quote characters.
4 5 Tobias Brunner
Alternatively, preshared secrets can be represented as hexadecimal or Base64 encoded binary values. A character sequence beginning with 0x is interpreted as sequence hexadecimal digits. Similarly, a character sequence beginning with 0s is interpreted as Base64 encoded binary data.
5 3 Martin Willi
6 3 Martin Willi
h2. Notation
7 3 Martin Willi
8 1 Martin Willi
[ _<id selectors>_ ] : PSK _<secret>_
9 1 Martin Willi
10 1 Martin Willi
h2. Examples
11 4 Tobias Brunner
12 4 Tobias Brunner
<pre>
13 4 Tobias Brunner
@moon.strongswan.org @sun.strongswan.org : PSK 0sv+NkxY9LLZvwj4qCC2o/gGrWDF2d21jL
14 4 Tobias Brunner
15 4 Tobias Brunner
@moon.strongswan.org %any : PSK 0sFpZAZqEN6Ti9sqt4ZP5EWcqx
16 4 Tobias Brunner
17 4 Tobias Brunner
@sun.strongswan.org : PSK "This is a strong password"
18 4 Tobias Brunner
19 4 Tobias Brunner
carol@strongswan.org : PSK "0sFpZAZqEN6Ti9sqt4ZP5EWcqx"
20 4 Tobias Brunner
21 4 Tobias Brunner
: PSK 0sv+NkxY9LLZvwj4qCC2o/gGrWDF2d21jL
22 4 Tobias Brunner
</pre>