git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server: limit API breakage
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
CryptUtils.java
diff --git
a/src/be/nikiroo/utils/CryptUtils.java
b/src/be/nikiroo/utils/CryptUtils.java
index 72c9c44b449a5e0ef782cb560dfe044c0c6e8840..9ef91015ad14f0ecc5c3d45f3f242628160146cc 100644
(file)
--- a/
src/be/nikiroo/utils/CryptUtils.java
+++ b/
src/be/nikiroo/utils/CryptUtils.java
@@
-293,13
+293,7
@@
public class CryptUtils {
* it was)
*/
public byte[] encrypt(String data) throws SSLException {
* it was)
*/
public byte[] encrypt(String data) throws SSLException {
- try {
- return encrypt(data.getBytes("UTF8"));
- } catch (UnsupportedEncodingException e) {
- // UTF-8 is required in all confirm JVMs
- e.printStackTrace();
- return null;
- }
+ return encrypt(StringUtils.getBytes(data));
}
/**
}
/**
@@
-319,13
+313,7
@@
public class CryptUtils {
* it was)
*/
public String encrypt64(String data) throws SSLException {
* it was)
*/
public String encrypt64(String data) throws SSLException {
- try {
- return encrypt64(data.getBytes("UTF8"));
- } catch (UnsupportedEncodingException e) {
- // UTF-8 is required in all confirm JVMs
- e.printStackTrace();
- return null;
- }
+ return encrypt64(StringUtils.getBytes(data));
}
/**
}
/**