DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUST
rust convert binary data into ASCII text using Base64 RFC 4648.
// encode
let
b64txt
=
base64
::
encode
(
data
)
;
// decode
let
data
=
base64
::
decode
(
b64txt
)
.
unwrap
(
)
;
PREVIOUS
NEXT
Tagged:
#rust
#convert
#binary
#data
#ASCII
#text
#RFC
ADD COMMENT
Topic
COMMENT
Name
2+6 =
Submit