Blame
Date:
Fri Apr 1 04:00:22 2022
UTC
Message:
Daily backup
11
2021-12-17
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]]:
15
2021-12-17
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