Skip to content

MarkSSL/encoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

import Encoding from '@markssl/encoding'

API

base64ToHex(b64: string): string

Converts a base64 string to a hex string.

bufToBase64(u8: Uint8Array): string

Converts a Uint8Array to a base64 string.

bufToHex(u8: Uint8Array): string

Converts a Uint8Array to a hex string.

hexToBuf(hex: string): Uint8Array

Converts a hex string to a Uint8Array.

numToHex(d: number): string

Converts a number to a hex string.

utf8ToHex(str: string): string

Converts a UTF-8 string to a hex string.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published