BinaryEncode
Encodes binary data to a string with the specified algorithm
Method Signature
Arguments
Argument
Type
Required
Description
Default
binary
any
true
The binary data to encode
encoding
string
true
The encoding to use
Examples
Encode a binary string back to a string using hex
use binaryEncode to Encode with hex
Result: 737472696e67
Encode a binary using UNIX UUencode (UU) back into string
use binaryEncode to Encode with UNIX UUencode (UU)
Result: W1R6YA==
Encode a binary using base64 back into a string
use binaryEncode to Encode with base64
Result: W1R6YA==
Additional Examples
Related
Last updated
Was this helpful?