[pve-devel] [PATCH manager 2/2] ui: TFA: default to a 160 bit secret
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Oct 29 09:50:46 CET 2019
On 10/28/19 12:20 PM, Wolfgang Bumiller wrote:
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
> www/manager6/dc/TFAEdit.js | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/www/manager6/dc/TFAEdit.js b/www/manager6/dc/TFAEdit.js
> index 7d19127d..8f3017f6 100644
> --- a/www/manager6/dc/TFAEdit.js
> +++ b/www/manager6/dc/TFAEdit.js
> @@ -289,7 +289,7 @@ Ext.define('PVE.window.TFAEdit', {
>
> randomizeSecret: function() {
> var me = this;
> - var rnd = new Uint8Array(16);
> + var rnd = new Uint8Array(32);
> window.crypto.getRandomValues(rnd);
> var data = '';
> rnd.forEach(function(b) {
>
applied, but added some hints about how the 32 byte translate to
160 bits in the commit message ;-)
More information about the pve-devel
mailing list