projects/sencrypt

changeset 9:cc930aa0f3c2

Perform 50000 iterations with the PBKDF2 hash function when creating new files

NIST and OWASP currently recommend at least 10000 iterations
author Guido Berhoerster <guido+sencrypt@berhoerster.name>
date Sat Sep 03 11:43:37 2016 +0200 (2016-09-03)
parents b284e11ee7a0
children 8e9dd5328b5a
files sencrypt.c
line diff
     1.1 --- a/sencrypt.c	Tue Mar 17 23:05:17 2015 +0100
     1.2 +++ b/sencrypt.c	Sat Sep 03 11:43:37 2016 +0200
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (C) 2011 Guido Berhoerster <guido+sencrypt@berhoerster.name>
     1.6 + * Copyright (C) 2016 Guido Berhoerster <guido+sencrypt@berhoerster.name>
     1.7   *
     1.8   * Permission is hereby granted, free of charge, to any person obtaining
     1.9   * a copy of this software and associated documentation files (the
    1.10 @@ -49,7 +49,7 @@
    1.11  #define	EXIT_USAGE	2
    1.12  
    1.13  #define	SENCRYPT_FORMAT_VERSION	1
    1.14 -#define	PBKDF2_ITERATIONS	1000
    1.15 +#define	PBKDF2_ITERATIONS	50000
    1.16  #define	SALT_LEN		16
    1.17  #define	BUFFER_SIZE		(16 * 1024)
    1.18  #define	MAX_PASSWORD_LEN	256