UNPKG

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