microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.14.2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/common/node/crypto.ts

12lines · modeblame

d3950d7edigeff10 years ago1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import * as crypto from "crypto";
5
6export class Crypto {
7public hash(data: string): string {
8const hasher = crypto.createHash("sha256");
9hasher.update(data);
10return hasher.digest("hex");
11}
12}