1 | import {Crypton} from "../interfaces/crypton";
|
2 | import {injectable} from "inversify";
|
3 | const shorthash = require('shorthash');
|
4 | ()
|
5 | export class CryptonImpl implements Crypton {
|
6 | string2JSIdHash(inputString: string): string {
|
7 | return `A${shorthash.unique(inputString)}`;
|
8 | }
|
9 | }
|