mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Salt: add copyright info
This commit is contained in:
parent
4c9703ad27
commit
de45f43640
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* Copyright 2014-2017, Teo Mrnjavac <teo@kde.org>
|
* Copyright 2014-2017, Teo Mrnjavac <teo@kde.org>
|
||||||
|
* Copyright 2017, Adriaan de Groot <groot@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* 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.
|
/// Returns a modular hashing salt for method 6 (SHA512) with a 16 character random salt.
|
||||||
QString
|
QString
|
||||||
make_salt(size_t length)
|
SetPasswordJob::make_salt(size_t length)
|
||||||
{
|
{
|
||||||
Q_ASSERT(length >= 8);
|
Q_ASSERT(length >= 8);
|
||||||
Q_ASSERT(length <= 128);
|
Q_ASSERT(length <= 128);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
||||||
|
* Copyright 2017, Adriaan de Groot <groot@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -32,6 +33,8 @@ public:
|
||||||
QString prettyStatusMessage() const override;
|
QString prettyStatusMessage() const override;
|
||||||
Calamares::JobResult exec() override;
|
Calamares::JobResult exec() override;
|
||||||
|
|
||||||
|
static QString make_salt(size_t length);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_userName;
|
QString m_userName;
|
||||||
QString m_newPassword;
|
QString m_newPassword;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue