Arquivo da categoria: TypeScript

Social login and authentication module for Angular 4 / 5 / 6

https://www.npmjs.com/package/angular-6-social-login
https://theinfogrid.com/tech/developers/angular/facebook-login-angular-rest-api/

Como criptografar em MD5 com TypeScript?

https://www.npmjs.com/package/ts-md5

1. Passo é importar:
[code type=javascript]import {Md5} from ‘ts-md5/dist/md5’;

2. Exemplos:
[code type=javascript]Md5.hashStr(‘blah blah blah’) => hex:string
Md5.hashStr(‘blah blah blah’, true) => raw:Int32Array(4)
Md5.hashAsciiStr(‘blah blah blah’) => hex:string
Md5.hashAsciiStr(‘blah blah blah’, true) => raw:Int32Array(4)