https://github.com/duquejo/azure-fn-nodejs-encryptionservice
Node JS v18 Azure function with asymmetric cypher encryption/decryption services
https://github.com/duquejo/azure-fn-nodejs-encryptionservice
Last synced: about 1 year ago
JSON representation
Node JS v18 Azure function with asymmetric cypher encryption/decryption services
- Host: GitHub
- URL: https://github.com/duquejo/azure-fn-nodejs-encryptionservice
- Owner: duquejo
- Created: 2023-05-16T21:22:01.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-28T17:59:35.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T09:13:23.212Z (over 1 year ago)
- Language: TypeScript
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Azure asymmetric decoding functional key
## Installation
```bash
$ npm install
```
## Running the service locally
```bash
# az function start
$ npm run start
# typescript tsc watching compiling mode (while development)
$ npm run watch
```
## Test
```bash
# unit tests --watchMode
$ npm run test
# test coverage
$ npm run test:coverage
```
## Generate our public/private pems.
Generating RSA private .pem file
```bash
openssl genrsa -out {location.pem}
```
Generating RSA public .pem file from existing private .pem file.
```bash
openssl rsa -in {private.pem-location} -pubout -out {location.pem}
```
These keys must be placed in `az-authentication/keys`.
### Suggestions
If you want a quick deployment, you can use AZ functions Toolkit for that.