https://github.com/ksdaemon/wampy-cra
Wampy Challenge Response Authentication plugin
https://github.com/ksdaemon/wampy-cra
Last synced: over 1 year ago
JSON representation
Wampy Challenge Response Authentication plugin
- Host: GitHub
- URL: https://github.com/ksdaemon/wampy-cra
- Owner: KSDaemon
- License: mit
- Created: 2016-05-16T14:22:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T21:13:51.000Z (almost 2 years ago)
- Last Synced: 2024-10-23T10:37:55.951Z (almost 2 years ago)
- Language: JavaScript
- Size: 1.31 MB
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
wampy-cra.js
============
[WAMP][] Challenge Response Authentication plugin for [Wampy.js][].
[![NPM version][npm-image]][npm-url]
[![Build Status][gh-build-test-image]][gh-build-test-url]
[![Code coverage][coveralls-image]][coveralls-url]
[![MIT License][license-image]][license-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
Description
===========
wampy-cra exposes 3 methods:
* deriveKey(secret, salt, iterations = 1000, keylen = 32). Used to generate a derived key using PBKDF2 scheme.
* signManual(key, challenge). Used to sign a challenge message, using a key, using SHA256 algorithm.
* **sign(secret)**. Probably the only function you need. Used to automatically create a
signed message, using only secret key. This function can be passed as onChallenge callback.
See examples in Wampy.js docs section
["Challenge Response Authentication"](https://github.com/KSDaemon/wampy.js#challenge-response-authentication)
Thanks JetBrains for the best IDEs and support for open source!
[![jetbrains logo]][jetbrains url]
[Wampy.js]: https://github.com/KSDaemon/wampy.js
[WAMP]: http://wamp-proto.org/
[npm-url]: https://www.npmjs.com/package/wampy-cra
[npm-image]: https://img.shields.io/npm/v/wampy-cra.svg?style=flat
[gh-build-test-url]: https://github.com/KSDaemon/wampy-cra/actions/workflows/build-and-test.yml
[gh-build-test-image]: https://github.com/KSDaemon/wampy-cra/actions/workflows/build-and-test.yml/badge.svg
[coveralls-url]: https://coveralls.io/github/KSDaemon/wampy-cra
[coveralls-image]: https://img.shields.io/coveralls/KSDaemon/wampy-cra/master.svg?style=flat
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: http://opensource.org/licenses/MIT
[snyk-image]: https://snyk.io/test/github/KSDaemon/wampy-cra/badge.svg?targetFile=package.json
[snyk-url]: https://snyk.io/test/github/KSDaemon/wampy-cra?targetFile=package.json
[jetbrains logo]: jetbrains.svg
[jetbrains url]: (https://www.jetbrains.com)