src/app/share/md5.service.ts
Methods |
|
constructor()
|
Defined in src/app/share/md5.service.ts:7
|
Public fromString | ||||||
fromString(contents: string)
|
||||||
Defined in src/app/share/md5.service.ts:11
|
||||||
Parameters :
Returns :
string
|
import { Injectable } from '@angular/core';
import * as SparkMD5 from 'spark-md5';
@Injectable({
providedIn: 'root',
})
export class Md5Service {
constructor() { }
public fromString(contents: string): string {
return SparkMD5.hash(contents);
}
}