forked from grails-file-uploader/grails-file-uploader
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in milan/checksum-calculator (pull request #27)
Milan/checksum calculator Approved-by: Hardik Modha <[email protected]>
- Loading branch information
Showing
24 changed files
with
1,206 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
.project | ||
!.gitignore # except for .gitignore | ||
.settings | ||
/out | ||
|
||
*.tmproj | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Tue Nov 28 17:45:47 IST 2017 | ||
#Tue Jan 30 19:18:03 IST 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/groovy/com/causecode/fileuploader/util/checksum/Algorithm.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (c) 2011 - Present, CauseCode Technologies Pvt Ltd, India. | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or | ||
* without modification, are not permitted. | ||
*/ | ||
package com.causecode.fileuploader.util.checksum | ||
|
||
/** | ||
* Enum to represent Algorithm to be used with hash calculation | ||
* @author Milan Savaliya | ||
* @since 3.1.0 | ||
*/ | ||
enum Algorithm { | ||
MD5, | ||
SHA1 | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/groovy/com/causecode/fileuploader/util/checksum/ChecksumConfig.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright (c) 2011 - Present, CauseCode Technologies Pvt Ltd, India. | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or | ||
* without modification, are not permitted. | ||
*/ | ||
package com.causecode.fileuploader.util.checksum | ||
|
||
/** | ||
* Checksum Config object to take decision weather to calculate checksum/hash or not, and if to calculate then with | ||
* which algorithm | ||
* @author Milan Savaliya | ||
* @since 3.1.0 | ||
*/ | ||
|
||
class ChecksumConfig { | ||
boolean calculate = false | ||
Algorithm algorithm = Algorithm.MD5 | ||
} |
Oops, something went wrong.