Searched refs:cipher (Results 1 – 4 of 4) sorted by relevance
344 Cipher cipher = Cipher.getInstance(CIPHER_TRANSFORMATION); in encryptWithKeyStore() local345 cipher.init(Cipher.ENCRYPT_MODE, key); in encryptWithKeyStore()346 return new StringBuffer(Base64.encodeToString(cipher.doFinal(value), Base64.DEFAULT)) in encryptWithKeyStore()348 .append(Base64.encodeToString(cipher.getIV(), Base64.DEFAULT)) in encryptWithKeyStore()376 Cipher cipher = Cipher.getInstance(CIPHER_TRANSFORMATION); in decryptWithKeyStore() local377 cipher.init(Cipher.DECRYPT_MODE, key, in decryptWithKeyStore()379 return cipher.doFinal(value); in decryptWithKeyStore()