mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 14:31:09 +02:00
Remove comment
This commit is contained in:
parent
a1ffd240e1
commit
cd2bc79b6b
@ -77,8 +77,6 @@ export interface IWelcomeScreenLoad extends IAnonymousEvent {
|
||||
}
|
||||
|
||||
const hashHex = async (input: string): Promise<string> => {
|
||||
// on os x (e.g. if you want to know the sha-256 of your own matrix ID so you can look it up):
|
||||
// echo -n <input> | shasum -a 256
|
||||
const buf = new TextEncoder().encode(input);
|
||||
const digestBuf = await window.crypto.subtle.digest("sha-256", buf);
|
||||
return [...new Uint8Array(digestBuf)].map((b: number) => b.toString(16).padStart(2, "0")).join("");
|
||||
|
Loading…
x
Reference in New Issue
Block a user