( groupId: string, groupPassword: string, )
| 192 | } |
| 193 | |
| 194 | export async function computeGroupPasswordValues( |
| 195 | groupId: string, |
| 196 | groupPassword: string, |
| 197 | ) { |
| 198 | const passwordValues = await derivePasswordValues({ |
| 199 | password: groupPassword, |
| 200 | salt: nanoidToBytes(groupId), |
| 201 | }); |
| 202 | |
| 203 | return { |
| 204 | passwordHash: passwordValues.hash, |
| 205 | |
| 206 | passwordKey: passwordValues.key, |
| 207 | }; |
| 208 | } |
| 209 | |
| 210 | export async function unlockGroupContentKeyring( |
| 211 | groupId: string, |
no test coverage detected