# HG changeset patch # User Guido Berhoerster # Date 1472895817 -7200 # Node ID cc930aa0f3c2b521062552be454fbc3195ec9cf1 # Parent b284e11ee7a0fde7a1156f0c5610da4bad0fc325 Perform 50000 iterations with the PBKDF2 hash function when creating new files NIST and OWASP currently recommend at least 10000 iterations diff -r b284e11ee7a0 -r cc930aa0f3c2 sencrypt.c --- a/sencrypt.c Tue Mar 17 23:05:17 2015 +0100 +++ b/sencrypt.c Sat Sep 03 11:43:37 2016 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Guido Berhoerster + * Copyright (C) 2016 Guido Berhoerster * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -49,7 +49,7 @@ #define EXIT_USAGE 2 #define SENCRYPT_FORMAT_VERSION 1 -#define PBKDF2_ITERATIONS 1000 +#define PBKDF2_ITERATIONS 50000 #define SALT_LEN 16 #define BUFFER_SIZE (16 * 1024) #define MAX_PASSWORD_LEN 256