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

Method decrypt

Skay_Exp/src/tools/CryptLib.java:251–256  ·  view source on GitHub ↗

This funtion decrypts the encrypted text to plain text using the key provided. You'll have to use the same key which you used during encryprtion @param _encryptedText Encrypted/Cipher text to be decrypted @param _key Encryption key which you used during encryption @param _iv

(String _encryptedText, String _key, String _iv)

Source from the content-addressed store, hash-verified

249 * @throws BadPaddingException
250 */
251 public String decrypt(String _encryptedText, String _key, String _iv)
252 throws InvalidKeyException, UnsupportedEncodingException,
253 InvalidAlgorithmParameterException, IllegalBlockSizeException,
254 BadPaddingException {
255 return encryptDecrypt(_encryptedText, _key, EncryptMode.DECRYPT, _iv);
256 }
257
258 /**
259 * this function generates random string for given length

Callers

nothing calls this directly

Calls 1

encryptDecryptMethod · 0.95

Tested by

no test coverage detected