utils

package
v0.0.0-...-42652ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64UrlDecode

func Base64UrlDecode(data string) []byte

func Base64UrlEncode

func Base64UrlEncode(data []byte) string

func ByteLength

func ByteLength(bitLength int) int

func Concat

func Concat(array1, array2 []byte) []byte

func LoadDecryptionKey

func LoadDecryptionKey(filePath, password string) (*rsa.PrivateKey, error)

LoadDecryptionKey from an Unencrypted Key File

func LoadEncryptionCertificate

func LoadEncryptionCertificate(certificatePath string) (*x509.Certificate, error)

Load certificate in both pem and der format

func LoadUnencryptedDecryptionKey

func LoadUnencryptedDecryptionKey(keyFilePath string) (*rsa.PrivateKey, error)

Load decryption key

func ParseReader

func ParseReader(r io.Reader) string

func SubArray

func SubArray(byteArray []byte, beginIndex, length int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL