Adds Argon2 for password protection (#123)
This commit is contained in:
parent
29467a3ed9
commit
dad8a64fad
54 changed files with 1152 additions and 167 deletions
13
.circleci/checksum.txt
Normal file
13
.circleci/checksum.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
95482048463cdc99c77a69951654de7b28fd6880 ../Projects/Argon2/Argon2.csproj
|
||||
ebafae4e8160057cbf408cb13114479ca26e1b58 ../Projects/Scripts.Tests/Scripts.Tests.csproj
|
||||
6c6a48220658bdfa7b2e1e173077fd139ed4af2c ../Projects/Scripts/Scripts.csproj
|
||||
6213c10f697b45729bab15f7870c42dcf49b026b ../Projects/Server.Tests/Server.Tests.csproj
|
||||
4b3626e04f76dff1ab445e207658a3b386fce4e5 ../Projects/Server/Server.csproj
|
||||
a663d309b6b86c7632ea5cd175468dd5180808c1 ../Projects/Argon2/Argon2.cs
|
||||
1e89625abe364f895346d0c5753f3ca6653cf7df ../Projects/Argon2/Argon2Context.cs
|
||||
abbb34d85f55ca1d78a400b4d46afbd6965f642b ../Projects/Argon2/Argon2Error.cs
|
||||
00ef35a6809d4959bdda1de01f45e39ff388270f ../Projects/Argon2/Argon2Exception.cs
|
||||
53164d1621e24adefc6917379d36d7273551f457 ../Projects/Argon2/Argon2PasswordHasher.cs
|
||||
a137d2fe0478d065d478366168f80ab9eaaa9c3a ../Projects/Argon2/Argon2Type.cs
|
||||
c09f7a2f9690d56ca838aafb28640c09950c5a8c ../Projects/Argon2/HashMetadata.cs
|
||||
b5da07548eb41ec9bd35bc2def006f23698b357e ../Projects/Argon2/Utility.cs
|
||||
|
|
@ -19,17 +19,20 @@ jobs:
|
|||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dotnet-packages-linux-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
|
||||
- dotnet-packages-v1-{{ arch }}-{{ checksum ".circleci/checksum.txt" }}
|
||||
- run:
|
||||
name: Build Argon2
|
||||
command: dotnet build -c Release -r linux-x64 Projects/Argon2/Argon2.csproj
|
||||
- run:
|
||||
name: Install ModernUO dependencies
|
||||
command: dotnet restore
|
||||
- save_cache:
|
||||
paths:
|
||||
- ~/.nuget/packages
|
||||
key: dotnet-packages-linux-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
|
||||
- /mnt/ramdisk/packages
|
||||
key: dotnet-packages-v1-{{ arch }}-{{ checksum ".circleci/checksum.txt" }}
|
||||
- run:
|
||||
name: Building ModernUO for Linux (Debug)
|
||||
command: dotnet build -c Release /p:PublishProfile=Linux
|
||||
command: dotnet build -c Debug -r linux-x64
|
||||
build_windows:
|
||||
description: Build application
|
||||
executor: win/default
|
||||
|
|
@ -37,17 +40,20 @@ jobs:
|
|||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dotnet-packages-windows-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
|
||||
- dotnet-packages-v1-{{ arch }}-{{ checksum ".circleci/checksum.txt" }}
|
||||
- run:
|
||||
name: Build Argon2
|
||||
command: dotnet build -c Debug -r win-x64 Projects/Argon2/Argon2.csproj
|
||||
- run:
|
||||
name: Install ModernUO dependencies
|
||||
command: dotnet restore
|
||||
- save_cache:
|
||||
paths:
|
||||
- ~/.nuget/packages
|
||||
key: dotnet-packages-windows-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
|
||||
- /mnt/ramdisk/packages
|
||||
key: dotnet-packages-v1-{{ arch }}-{{ checksum ".circleci/checksum.txt" }}
|
||||
- run:
|
||||
name: Building ModernUO for Windows (Debug)
|
||||
command: dotnet build -c Release /p:PublishProfile=Windows
|
||||
command: dotnet build -c Debug -r win-x64
|
||||
code_styling:
|
||||
description: Code analysis
|
||||
executor: linux-build
|
||||
|
|
@ -56,17 +62,20 @@ jobs:
|
|||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dotnet-packages-linux-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
|
||||
- dotnet-packages-v1-{{ arch }}-{{ checksum ".circleci/checksum.txt" }}
|
||||
- run:
|
||||
name: Build Argon2
|
||||
command: dotnet build -c Debug -r linux-x64 Projects/Argon2/Argon2.csproj
|
||||
- run:
|
||||
name: Install ModernUO dependencies
|
||||
command: dotnet restore
|
||||
- save_cache:
|
||||
paths:
|
||||
- ~/.nuget/packages
|
||||
key: dotnet-packages-linux-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
|
||||
- /mnt/ramdisk/packages
|
||||
key: dotnet-packages-v1-{{ arch }}-{{ checksum ".circleci/checksum.txt" }}
|
||||
- run:
|
||||
name: Building with Analyzers
|
||||
command: dotnet build -c Analyze /p:PublishProfile=Linux
|
||||
command: dotnet build -c Analyze -r linux-x64
|
||||
tests:
|
||||
description: Unit Tests
|
||||
executor: linux-build
|
||||
|
|
@ -75,17 +84,20 @@ jobs:
|
|||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dotnet-packages-linux-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
|
||||
- dotnet-packages-v1-{{ arch }}-{{ checksum ".circleci/checksum.txt" }}
|
||||
- run:
|
||||
name: Build Argon2
|
||||
command: dotnet build -c Debug -r linux-x64 Projects/Argon2/Argon2.csproj
|
||||
- run:
|
||||
name: Install ModernUO dependencies
|
||||
command: dotnet restore
|
||||
- save_cache:
|
||||
paths:
|
||||
- ~/.nuget/packages
|
||||
key: dotnet-packages-linux-{{ checksum "Projects/Server/Server.csproj" }}-{{ checksum "Projects/Scripts/Scripts.csproj" }}
|
||||
- /mnt/ramdisk/packages
|
||||
key: dotnet-packages-linux-{{ checksum ".circleci/checksum.txt" }}
|
||||
- run:
|
||||
name: Running unit tests
|
||||
command: dotnet test
|
||||
command: dotnet test -r linux-x64
|
||||
workflows:
|
||||
build-and-test:
|
||||
jobs:
|
||||
|
|
|
|||
1
.circleci/genchecksum.sh
Executable file
1
.circleci/genchecksum.sh
Executable file
|
|
@ -0,0 +1 @@
|
|||
sha1sum ../Projects/*/*.csproj ../Projects/Argon2/*.cs > "checksum.txt"
|
||||
Loading…
Add table
Add a link
Reference in a new issue