Skip to content

Instantly share code, notes, and snippets.

@kobvel
Last active January 29, 2018 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kobvel/c0a7c76cc5d21e4b1364be3bd2b21155 to your computer and use it in GitHub Desktop.
Save kobvel/c0a7c76cc5d21e4b1364be3bd2b21155 to your computer and use it in GitHub Desktop.
import { Component, Inject } from '@angular/core';
import { ApiService } from './api.service';
@Component({
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