aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2013-10-05 16:40:12 +0200
committerBananeweizen <Bananeweizen@gmx.de>2013-10-05 16:40:12 +0200
commit2fc7bcde91578f7132a0503d4f14c1ad8242b21d (patch)
tree284a23f3e35e5756440f15230d1083aefb705b08 /main/src/cgeo/geocaching/utils
parent48dab7615f8ffe60a55441373dbd0632b9b6c3d7 (diff)
downloadcgeo-2fc7bcde91578f7132a0503d4f14c1ad8242b21d.zip
cgeo-2fc7bcde91578f7132a0503d4f14c1ad8242b21d.tar.gz
cgeo-2fc7bcde91578f7132a0503d4f14c1ad8242b21d.tar.bz2
refactoring: remove unused code
Diffstat (limited to 'main/src/cgeo/geocaching/utils')
-rw-r--r--main/src/cgeo/geocaching/utils/CryptUtils.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/main/src/cgeo/geocaching/utils/CryptUtils.java b/main/src/cgeo/geocaching/utils/CryptUtils.java
index d98585a..5273fa5 100644
--- a/main/src/cgeo/geocaching/utils/CryptUtils.java
+++ b/main/src/cgeo/geocaching/utils/CryptUtils.java
@@ -95,20 +95,6 @@ public final class CryptUtils {
return StringUtils.EMPTY;
}
- public static String sha1(String text) {
- try {
- final MessageDigest digest = MessageDigest.getInstance("SHA-1");
- digest.update(text.getBytes(CharEncoding.UTF_8), 0, text.length());
- return new BigInteger(1, digest.digest()).toString(16);
- } catch (NoSuchAlgorithmException e) {
- Log.e("CryptUtils.sha1", e);
- } catch (UnsupportedEncodingException e) {
- Log.e("CryptUtils.sha1", e);
- }
-
- return StringUtils.EMPTY;
- }
-
public static byte[] hashHmac(String text, String salt) {
byte[] macBytes = {};