(final String input)
| 310 | } |
| 311 | |
| 312 | public byte[] encrypt(final String input) { |
| 313 | try { |
| 314 | final byte[] bytes = input.getBytes(Opslab.UTF_8); |
| 315 | return encrypt(bytes, 0, bytes.length); |
| 316 | } catch (UnsupportedEncodingException e) { |
| 317 | return null; |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | public byte[] encrypt(final byte[] source) { |
| 322 | return encrypt(source, 0, source.length); |