Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidafsilva/fihac
A file Hash and Cipher utility
https://github.com/davidafsilva/fihac
Last synced: about 2 months ago
JSON representation
A file Hash and Cipher utility
- Host: GitHub
- URL: https://github.com/davidafsilva/fihac
- Owner: davidafsilva
- Created: 2014-11-22T19:27:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-30T15:43:26.000Z (about 10 years ago)
- Last Synced: 2024-10-08T18:01:59.954Z (3 months ago)
- Language: Java
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FiHaC [![Build Status for davidafsilva/FiHaC](https://img.shields.io/codeship/2fdb2e40-54af-0132-107b-42ab35009c21/master.svg?style=flat-square)](https://codeship.com/projects/49234) [![Coverage Status for davidafsilva/FiHaC](http://img.shields.io/coveralls/davidafsilva/FiHaC/master.svg?style=flat-square)](https://coveralls.io/r/davidafsilva/FiHaC?branch=master)
======
FiHaC stands for File Hash and Cipher.
It is intended to provide a small, but useful set of file related functionality, like hashing and
ciphering/deciphering a user specified file.Currently, these are the supported algorithms:
* [MD5](http://en.wikipedia.org/wiki/MD5)
* [Whirlpool](http://en.wikipedia.org/wiki/Whirlpool_\(cryptography\))
* [SHA-1](http://en.wikipedia.org/wiki/SHA-1)
* [SHA-256](http://en.wikipedia.org/wiki/SHA-2)
* [SHA-384](http://en.wikipedia.org/wiki/SHA-2)
* [SHA-512](http://en.wikipedia.org/wiki/SHA-2)
* [Keccak-256](http://en.wikipedia.org/wiki/SHA-3)
* [Keccak-384](http://en.wikipedia.org/wiki/SHA-3)
* [Keccak-512](http://en.wikipedia.org/wiki/SHA-3)Usage:
======
#### Use the HashCalculatorFactory to create a new HashCalculator instance for an arbitrary <ALGORITHM_TYPE> (enumerated at HashAlgorithm)
```java
final HashCalculator hashCalculator = HashCalculatorFactory.getInstance()
.create(HashAlgorithm.);
```Copyright ©
=================
Copyright (C) 2014 David Silva
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the David Silva nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.