MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / encrypt

Method encrypt

src/main/java/com/opslab/util/encrypt/Blowfish.java:312–319  ·  view source on GitHub ↗
(final String input)

Source from the content-addressed store, hash-verified

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);

Callers 2

testEncryptMethod · 0.95
testDecryptMethod · 0.95

Calls 2

processBlockMethod · 0.95
initMethod · 0.95

Tested by 2

testEncryptMethod · 0.76
testDecryptMethod · 0.76