aspnet-identityv3
Description
Typescript library to generate & validate ASP.NET Identity V2 & V3 passwords. To be used for connecting node.js application to ASP.NET managed database in case you need to separate authorization out of ASP.NET application.
Install
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install aspnet-identityv3 --save
Typescript
Generate hash for the password
; ; // hash: Buffer ; // hash: Base64 encoded string
Verify password over hashed
; await aspnet_hasher.verify'Swordfish', new Buffer'005421a7c5dfa8927f2bacbd8dee42dffd1c19942452d218fe1661a60f5ee71469afa776658519422352186d14f1dca997', 'hex' // you can either pass Buffer or base64 encoded string await aspnet_hasher.verify'Swordfish', 'AQAAAAEAACcQAAAAEFQhp8XfqJJ/K6y9je5C3/3q8wIiGrIPBj9JjkBzEafFl7nBaGcmzfHVDGDs04m/ew=='