MCPcopy Create free account
hub / github.com/0linlin0/CyberBox / encrypt

Method encrypt

Skay_Exp/src/tools/CryptLib.java:226–231  ·  view source on GitHub ↗

This function encrypts the plain text to cipher text using the key provided. You'll have to use the same key for decryption @param _plainText Plain text to be encrypted @param _key Encryption Key. You'll have to use the same key for decryption @param _iv initialization Ve

(String _plainText, String _key, String _iv)

Source from the content-addressed store, hash-verified

224 */
225
226 public String encrypt(String _plainText, String _key, String _iv)
227 throws InvalidKeyException, UnsupportedEncodingException,
228 InvalidAlgorithmParameterException, IllegalBlockSizeException,
229 BadPaddingException {
230 return encryptDecrypt(_plainText, _key, EncryptMode.ENCRYPT, _iv);
231 }
232
233 /***
234 * This funtion decrypts the encrypted text to plain text using the key

Callers 2

testMethod · 0.80
executionMethod · 0.80

Calls 1

encryptDecryptMethod · 0.95

Tested by

no test coverage detected