( text: string, password: string, rounds: number = DEFAULT_ITER )
| 121 | }; |
| 122 | |
| 123 | export 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 | |
| 137 | export const encryptStringToBase64url = async ( |
| 138 | text: string, |
no test coverage detected