From 8e28df0f22ee91eada6cd3ee55cdce26d33e2b2e Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 20 Jun 2017 17:18:12 -0400 Subject: [PATCH] Salt: add copyright info --- src/modules/users/SetPasswordJob.cpp | 3 ++- src/modules/users/SetPasswordJob.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/users/SetPasswordJob.cpp b/src/modules/users/SetPasswordJob.cpp index d301bd23c..bf3423347 100644 --- a/src/modules/users/SetPasswordJob.cpp +++ b/src/modules/users/SetPasswordJob.cpp @@ -1,6 +1,7 @@ /* === This file is part of Calamares - === * * Copyright 2014-2017, Teo Mrnjavac + * Copyright 2017, Adriaan de Groot * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -53,7 +54,7 @@ SetPasswordJob::prettyStatusMessage() const /// Returns a modular hashing salt for method 6 (SHA512) with a 16 character random salt. QString -make_salt(size_t length) +SetPasswordJob::make_salt(size_t length) { Q_ASSERT(length >= 8); Q_ASSERT(length <= 128); diff --git a/src/modules/users/SetPasswordJob.h b/src/modules/users/SetPasswordJob.h index f8e0c2447..45e99a57a 100644 --- a/src/modules/users/SetPasswordJob.h +++ b/src/modules/users/SetPasswordJob.h @@ -1,6 +1,7 @@ /* === This file is part of Calamares - === * * Copyright 2014-2015, Teo Mrnjavac + * Copyright 2017, Adriaan de Groot * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,6 +33,8 @@ public: QString prettyStatusMessage() const override; Calamares::JobResult exec() override; + static QString make_salt(size_t length); + private: QString m_userName; QString m_newPassword;