Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Component, Inject } from '@angular/core';
import { ApiService } from './api.service';
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
export class AppComponent {
constructor( @Inject('Hashwords') public hashwords: any) {
const testHash = '90750f585b9ef687ed3eb54e911a4dd10153fc3dee51fc5548529adfdc3141fe';
const humanHash = hashwords.hashStr(testHash);
console.log('Human readbale hash :', humanHash);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.