Skip to content

Commit df68c1a

Browse files
Add base64 encoding info (#76)
1 parent 2eb0575 commit df68c1a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

modules/ROOT/pages/security/index.adoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,19 @@ Finally we append `Basic` to the beginning to have the following as the final he
3737
Authorization: Basic bmVvNGo6dmVyeXNlY3JldA==
3838
----
3939

40+
.How to base64 encode a string
41+
[%collapsible]
42+
====
43+
To base64 encode a string on a Linux or Mac machine, use the built-in `base64` command:
44+
45+
[source, bash]
46+
----
47+
echo -n "neo4j:verysecret" | base64
48+
----
49+
====
4050

41-
_Complete Request Example_
51+
[discrete]
52+
=== Complete Request Example
4253

4354
* *+POST+* +http://localhost:7474/db/neo4j/tx/commit+
4455
* *+Accept:+* +application/json;charset=UTF-8+

0 commit comments

Comments
 (0)