adding composer.json & config example

This commit is contained in:
a-sansara 2017-03-11 22:07:58 +01:00
parent 037ee17766
commit 003666ef7c
2 changed files with 37 additions and 0 deletions

13
composer.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "meta-tech/PwsAuth",
"license": "MIT",
"type": "library",
"autoload": {
"psr-4": {
"": "src/"
}
},
"require": {
"symfony/yaml": "^3.2"
}
}

24
config/pwshauth.yml.dist Normal file
View File

@ -0,0 +1,24 @@
pwsauth :
type : PwsAuth2
header :
auth : Pws-Authorization
ident : Pws-Ident
salt :
common : jK5#p9Mh5.Zv}
# used for generating user specific salt
user.index : 10
user.length : 12
hash :
sep : /
algo : sha256
# effective token length size. out of bound data is simply noise
length : 52
# session index (or obfuscate length)
session.index : 58
# ending noise data length)
noise.length : 12