diff sencrypt.c @ 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, 03 Sep 2016 11:43:37 +0200
parents abb770754967
children 8e9dd5328b5a
line wrap: on
line diff
--- 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 <guido+sencrypt@berhoerster.name>
+ * Copyright (C) 2016 Guido Berhoerster <guido+sencrypt@berhoerster.name>
  *
  * 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