aboutsummaryrefslogtreecommitdiff
path: root/backend/db/schemas.go
diff options
context:
space:
mode:
authorRyan Mehri <[email protected]>2020-05-15 17:58:09 -0600
committerRyan Mehri <[email protected]>2020-05-15 17:58:09 -0600
commit5d037e8297a192996b7281af0ca761c160aaed30 (patch)
tree68a21642cfb9396e734f16e8d636af3efdee49a0 /backend/db/schemas.go
parentMerge pull request #24 from jackyzha0/update-readme (diff)
downloadctrl-v-5d037e8297a192996b7281af0ca761c160aaed30.tar.xz
ctrl-v-5d037e8297a192996b7281af0ca761c160aaed30.zip
Add encryption to content when password is specified
Diffstat (limited to 'backend/db/schemas.go')
-rw-r--r--backend/db/schemas.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/db/schemas.go b/backend/db/schemas.go
index 4c73f82..d3551fc 100644
--- a/backend/db/schemas.go
+++ b/backend/db/schemas.go
@@ -14,4 +14,5 @@ type Paste struct {
Expiry time.Time `bson:"expiry"`
Title string
Password string
+ Salt []byte
}