Comments (3)
generateSalt()
is not used in password hashing, I believe the salt field is really a leftover from thinking about password hashing, and making sure to use salting. However bcrypt generates the salt itself.
generateSalt()
is used for making the cookie for a session.
It may be the case that the salt field on staff table should be removed, since it's not used as far as I know.
from gochan.
Like @onekopaka said, the salt field is a carryover from Kusaba X's (less than great) design and has never actually been used, so I'm going to get rid of it. I'm also going to move config.RandomSeed
to the DBPREFIXinfo
SQL table and its value will be randomly generated when gochan is first run. If the DBPREFIXinfo
table has a version row but no randomseed row, gochan will assume that something has gone catastrophically wrong, print a critical message, and exit, since this shouldn't be an issue under normal circumstances.
from gochan.
On second thought, I'm going to keep config.RandomSeed
in the JSON file, but a random one will be generated on the first run if it's an empty string.
from gochan.
Related Issues (20)
- Create button to logout current user from all of their sessions
- Make session expiration time configurable
- Create a usable mobile interface HOT 2
- Port themes from bunkerchan over to gochan
- Implement wordfilters
- Completely phase out Vagrant to be replaced by Docker HOT 1
- Add a plugin system HOT 2
- Add functionality to allow gochan-migrate to migrate deprecated gochan installs HOT 1
- Make a stable JSON API for /manage calls
- New board HOT 4
- image display HOT 5
- Help with Docker install HOT 3
- Replace gochan-migration with a plugin
- Issue running gochan executable: "Error parsing gochan.json: invalid character ']' looking for beginning of valueinvalid ListenIP value: "" " HOT 6
- Another execution error (hope this isn't a bother). HOT 7
- Federation support HOT 5
- bridge boards/threads to anonymous telegram imageboard bots HOT 3
- Easier of use HOT 28
- Finish GeoIP support HOT 3
- Add image fingerprinting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gochan.