MCPcopy Create free account
hub / github.com/AandStep/ResultV / DecryptSubscription

Function DecryptSubscription

internal/proxy/subscription_decrypt.go:45–47  ·  view source on GitHub ↗

DecryptSubscription unwraps an RVSUB1-prefixed payload. For non-encrypted input it returns the trimmed value unchanged.

(body string)

Source from the content-addressed store, hash-verified

43// DecryptSubscription unwraps an RVSUB1-prefixed payload. For non-encrypted
44// input it returns the trimmed value unchanged.
45func DecryptSubscription(body string) (string, error) {
46 return tryDecryptSubscription(body)
47}
48
49// tryDecryptSubscription attempts to decrypt an RVSUB1-prefixed payload. Returns
50// the plaintext when successful, or a specific error so callers can surface a

Callers 1

Calls 1

tryDecryptSubscriptionFunction · 0.85

Tested by

no test coverage detected