vault: github.com/hashicorp/vault/helper/xor Index | Files

package xor

import "github.com/hashicorp/vault/helper/xor"

Index

Package Files

xor.go

func XORBase64 Uses

func XORBase64(a, b string) ([]byte, error)

XORBase64 takes two base64-encoded strings and XORs the decoded byte slices together, returning the final byte slice. It is an error to pass in two strings that do not have the same length to their base64-decoded byte slice.

func XORBytes Uses

func XORBytes(a, b []byte) ([]byte, error)

XORBytes takes two byte slices and XORs them together, returning the final byte slice. It is an error to pass in two byte slices that do not have the same length.

Package xor imports 3 packages (graph) and is imported by 32 packages. Updated 2019-07-01. Refresh now. Tools for package owners.