An MVP project I started with the purpose of learning React/Redux and Node.js. Contains the basic elements of a password manager including authentication, RESTful APIs for users and records, and a pleasant UI interface for viewing, adding, editing, copying, and deleting passwords and other meta data (Using ant.design).
The app is using encryption heavily to ensure the security of all the data stored by the users, and including a few layers of encryption. The encryption layers could be simplified to a puzzle, and each piece reveals crucial information for the next piece to fit in, until the puzzle can be displayed.
Each collection reveals data for the next, so a relational database approach was used to separate sensitive information apart.
The cid
and rid
are the real identifiers for the collections, and are SHA256 hashes consisting of user data, and uniquely generated salts and encryption keys.
Users:
{
"_id": {
"$oid": "5baaa061de6c3765e1668cf2"
},
"devices": [
"SAfTnHDp70gwFXK7eRl7BuxHZe3HqAyb9TltiEiCoN+F8lKDeqCynrFDS3zi48Rj7ic6HZU9g4M1oScg2NPOvNaKpcRksdKsfqONyQzHcl4PvCGllRyv3v9zcMVxTFna/ynvIJP+XBzlpwY+pTon9prWsaBysVzwitjKsnjj145LccXTvl8zX/xTMLAILFfYAYIeY3BYXSviFYEZKd8GCxn8TBps4RAfL1OmUSy2dHnHe0ppu8dsci6ing+JGV7YHjPo4z2IIk+REyN08Z8nPzHCIa4bVI6QOY6aTvuUyhO5kJsy2PmY7HskZSaz+KZePiHSzIlVeKoiADpziVJ4Hw=="
],
"email": "UcY7en7PCGH7VB3Uwq5kxN7jw2Bl1pBV1om6CahVh9M=",
"password": "$2a$10$mVTaR3K4GdWDuB0V9uPPvOT9XnVPJ7iu/d8e1LcTpO5VkUSF240TK",
"tokens": [
{
"_id": {
"$oid": "5baaa061de6c3765e1668cf3"
},
"access": "auth",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YmFhYTA2MWRlNmMzNzY1ZTE2NjhjZjIiLCJhY2Nlc3MiOiJhdXRoIiwiaWF0IjoxNTM3OTA4ODMzLCJleHAiOjE1Mzc5MTA2MzN9.Lh2u4smyT9kWsQIU6rwMJtjTj2Wxdw-C-Pkna3AbLHI"
}
],
"salt": "U2FsdG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hIMFqiYBQKayx48ZdQFBcJ5vEO7Nrrdjm9EQeOYb+BVaVt2U9cVUPu/HVgNLzRlzlKxQt3QxBRh46ElMTJtL0iUYWTcQCMmI6BzKD7v61qD7RZSFi1/p68YOAobYidVpVVhKoYLvzM+oVnt6g4SaZASBU/P7yy5udcbhEv1n0mKzOKNbWxRe0iSztfq+3qHlaoX03jwYKVKcVG31pLKsmvr3Uw5Wzzx7OBY+HEcI5/FLi0lv8VwVAzFf691hDQblk7M2taMbx7A==",
"rid": "62861f861f505c161dc4881e285de5e6fae66044af045060f91c615767443659",
"__v": 0
}
The MVP is completed, though there can be endless ways to develop and make it a fully-featured and used app.
- Creating tests for backend/frontend
- 2FA authentication
- Bruteforce protection
- Groups/folders
- Browser extension
Copyright 2018 pwdlab.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.