Skip to content

Support base64 encoding for encrypt/decrypt API #14

@kthomas

Description

@kthomas

Currently, the encrypt/decrypt endpoints only support hex encoding.

We should consider adding an encoding parameter to the EncryptDecryptRequestResponse in provide-go.

// EncryptDecryptRequestResponse contains the data (i.e., encrypted or decrypted) and an optional nonce
type EncryptDecryptRequestResponse struct {
	Data  string  `json:"data"`
	Encoding  string  `json:"encoding"` // we should add support for this...
	Nonce *string `json:"nonce,omitempty"`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions