Skip to content

Commit

Permalink
Merge pull request #21 from stephpy/master
Browse files Browse the repository at this point in the history
[Basic backend] improvements
  • Loading branch information
shouze committed Jan 25, 2016
2 parents a2993e1 + 0922fd9 commit 1ddd3f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rezzza/Vaultage/Backend/Basic/Cipher.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ private function extractTokenFromMetadata(Metadata $metadata)
$phrase .= ':'.$metadata->passphrase;
}

return mhash(MHASH_SHA1, $phrase);
return mhash(MHASH_SHA256, $phrase);
}
}
2 changes: 2 additions & 0 deletions src/Rezzza/Vaultage/Backend/Basic/ResourceProcessor/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Rezzza\Vaultage\Backend\Basic\ResourceProcessor;

use Rezzza\Vaultage\Backend\BackendInterface;
use Rezzza\Vaultage\Exception\BadCredentialsException;
use Rezzza\Vaultage\Backend\Basic\Cipher;
use Rezzza\Vaultage\Backend\ResourceProcessorInterface;
use Rezzza\Vaultage\Resource\File as Resource;
Expand Down Expand Up @@ -76,6 +77,7 @@ public function decrypt(ResourceInterface $resource, BackendInterface $backend,
);
$processed = true;
} catch (\Exception $e) {
throw new BadCredentialsException('Bad credentials');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Rezzza/Vaultage/Vaultage.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class Vaultage
{
CONST VERSION = '1.0b';
CONST VERSION = '1.0c';

/**
* @var BackendInterface
Expand Down
Binary file modified vaultage.phar
Binary file not shown.

0 comments on commit 1ddd3f2

Please sign in to comment.