Blame


1 5127fd58 2021-12-17 jrmu version=pmwiki-2.2.130 ordered=1 urlencoded=1
2 5127fd58 2021-12-17 jrmu agent=Mozilla/5.0 (X11; OpenBSD amd64; rv:82.0) Gecko/20100101 Firefox/82.0
3 5127fd58 2021-12-17 jrmu author=jrmu
4 5127fd58 2021-12-17 jrmu charset=UTF-8
5 5127fd58 2021-12-17 jrmu csum=
6 5127fd58 2021-12-17 jrmu ctime=1612247857
7 5127fd58 2021-12-17 jrmu host=198.251.81.119
8 5127fd58 2021-12-17 jrmu name=Openbsd.Base64
9 5127fd58 2021-12-17 jrmu rev=1
10 5127fd58 2021-12-17 jrmu targets=
11 5127fd58 2021-12-17 jrmu text=(:title Base64 Encoding:)%0a%0aThere are two easy ways to base64 encode a string. You can use [[https://man.openbsd.org/b64encode|b64encode]]:%0a%0a[@%0a$ b64encode randomname%0abegin-base64 644 test%0arandomstring%0acmFuZG9tc3RyaW5n%0a@]%0a%0aOr you can use this perl one-liner:%0a%0a[@%0aperl -MMIME::Base64 -e 'print encode_base64("randomstring");'%0acmFuZG9tc3RyaW5n%0a@]%0a%0aTo decode a base64 string, you can use [[https://man.openbsd.org/b64decode|b64decode]]:
12 5127fd58 2021-12-17 jrmu time=1612247857
13 5127fd58 2021-12-17 jrmu title=Base64 Encoding
14 5127fd58 2021-12-17 jrmu author:1612247857=jrmu
15 5127fd58 2021-12-17 jrmu diff:1612247857:1612247857:=1,19d0%0a%3c (:title Base64 Encoding:)%0a%3c %0a%3c There are two easy ways to base64 encode a string. You can use [[https://man.openbsd.org/b64encode|b64encode]]:%0a%3c %0a%3c [@%0a%3c $ b64encode randomname%0a%3c begin-base64 644 test%0a%3c randomstring%0a%3c cmFuZG9tc3RyaW5n%0a%3c @]%0a%3c %0a%3c Or you can use this perl one-liner:%0a%3c %0a%3c [@%0a%3c perl -MMIME::Base64 -e 'print encode_base64("randomstring");'%0a%3c cmFuZG9tc3RyaW5n%0a%3c @]%0a%3c %0a%3c To decode a base64 string, you can use [[https://man.openbsd.org/b64decode|b64decode]]:%0a\ No newline at end of file%0a
16 5127fd58 2021-12-17 jrmu host:1612247857=198.251.81.119