byte[] base64TextToDecrypt = Base64.decodeBase64(textToDecrypt); or more precisely: byte[] bytesToDecrypt = Base64(base64TextToDecrypt);