Skip to content

Commit 92b59ad

Browse files
authored
📝 Base64 headers (#1446)
1 parent 066ccf5 commit 92b59ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/utils/base64.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Library to encode strings in Base64.
99

1010
<!-- customintro:start --><!-- customintro:end -->
1111

12-
## Functions
12+
## Encoding / Decoding
1313

1414
### encode(bytes,bool,bool)
1515

src/utils/Base64.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ pragma solidity ^0.8.4;
66
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol)
77
/// @author Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos - <[email protected]>.
88
library Base64 {
9+
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
10+
/* ENCODING / DECODING */
11+
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
12+
913
/// @dev Encodes `data` using the base64 encoding described in RFC 4648.
1014
/// See: https://datatracker.ietf.org/doc/html/rfc4648
1115
/// @param fileSafe Whether to replace '+' with '-' and '/' with '_'.

0 commit comments

Comments
 (0)