MCPcopy
hub / github.com/remotely-save/remotely-save / decryptBase32ToString

Function decryptBase32ToString

src/encryptOpenSSL.ts:123–135  ·  view source on GitHub ↗
(
  text: string,
  password: string,
  rounds: number = DEFAULT_ITER
)

Source from the content-addressed store, hash-verified

121};
122
123export const decryptBase32ToString = async (
124 text: string,
125 password: string,
126 rounds: number = DEFAULT_ITER
127) => {
128 return new TextDecoder().decode(
129 await decryptArrayBuffer(
130 bufferToArrayBuffer(base32.parse(text, { loose: true })),
131 password,
132 rounds
133 )
134 );
135};
136
137export const encryptStringToBase64url = async (
138 text: string,

Callers 1

Calls 2

bufferToArrayBufferFunction · 0.90
decryptArrayBufferFunction · 0.85

Tested by

no test coverage detected