UNPKG

tweetnacl-ts

Version:

Port of TweetNaCl cryptographic library to TypeScript (and ES6)

8 lines (7 loc) 388 B
import { ByteArray } from '../array'; export declare function encodeUTF8(a: ByteArray): string; export declare function decodeUTF8(s: string): ByteArray; export declare function encodeBase64(a: ByteArray): string; export declare function decodeBase64(s: string): ByteArray; export declare function encodeHex(a: ByteArray): string; export declare function decodeHex(s: string): ByteArray;