How to use the ts-md5/dist/md5.Md5 function in ts-md5

To help you get started, we’ve selected a few ts-md5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github airsonic / airsonic-ui / src / app / shared / service / auth.service.ts View on Github external
loginMyUser(username: string, password: string, server: string) {
    // Log user in
    const salt = this.generateSalt();
    const token = new Md5().appendStr(password).appendStr(salt).end().toString();
    const myUser: MyUser = {
      name: username,
      salt: salt,
      token: token,
      server: server
    };
    localStorage.setItem(USER_INFO, JSON.stringify(myUser));
    localStorage.setItem(SERVER_URL, server);
    this.loadMyRoles(username);
    this.loadMyFolders(username);
  }
github Swing-team / pendulums-web-client / src / app / dashboard / projects / create-project / create-project.component.ts View on Github external
constructor(private projectServices: ProjectService,
              private store: Store,
              private projectsActions: ProjectsActions,
              private modalService: ModalService,
              private errorService: ErrorService) {
    this.md5 = new Md5();
  }

ts-md5

TypeScript MD5 implementation

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis