Add @base64d for decoding base64 #47
This commit is contained in:
1 parent
dc679081fa
commit
e0b784ac6d
8 files changed
+124
-5
No files matched your search
@@ -1770,6 +1770,11 @@ sections:
|
||||
|
||||
The input is converted to base64 as specified by RFC 4648.
|
||||
|
||||
* `@base64d`:
|
||||
|
||||
The inverse of `@base64`, input is decoded as specified by RFC 4648.
|
||||
Note\: If the decoded string is not UTF-8, the results are undefined.
|
||||
|
||||
This syntax can be combined with string interpolation in a
|
||||
useful way. You can follow a `@foo` token with a string
|
||||
literal. The contents of the string literal will *not* be
|
||||
@@ -1799,6 +1804,14 @@ sections:
|
||||
input: "\"O'Hara's Ale\""
|
||||
output: ["\"echo 'O'\\\\''Hara'\\\\''s Ale'\""]
|
||||
|
||||
- program: '@base64'
|
||||
input: '"This is a message"'
|
||||
output: ['"VGhpcyBpcyBhIG1lc3NhZ2U="']
|
||||
|
||||
- program: '@base64d'
|
||||
input: '"VGhpcyBpcyBhIG1lc3NhZ2U="'
|
||||
output: ['"This is a message"']
|
||||
|
||||
- title: "Dates"
|
||||
body: |
|
||||
|
||||
|
||||
Reference in new issue
Block a user