firebase / firebase/functions-samples

Sample Request: for encrypting an entry using an environment variable and writing to DB

Open
#256 2 comments 0 reactions 1 assignee Claimed by @nicolasgarnier View on GitHub
new sample request
Dominant language
JavaScript
Stars
12.2k
Forks
3.8k
Avg merge
3d 23h
Merged PRs (30d)
1

Description

Have a request for a new sample?
================================

**Securely Encrypting a value and writing it to the database ideally using a Env- Variable?**

**Steps to set up and reproduce**
1. Take a plain text entry
2. Encrypt it using best practice ideally using a Environment variable key
3. Write it to the DB

4. Perform the decryption and console.log the output.

This is useful for storing Api Tokens/ personally identifiable data assuming there isn't a more "firebasey" way of doing this already.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.