Timothy Farrell b874c07f01 Add Gallery - core image model working
(add, imported event, thumbnail generation, removal)
2017-03-22 08:32:47 -05:00

6 lines
169 B
JavaScript

import { bufferToHexString } from './conversion.js';
export async function sha256(buffer) {
return bufferToHexString(await crypto.subtle.digest('sha-256', buffer));
}