1: …… 2: public Cipher getCipher() { 3: Cipher rsa = null; 4: 5: try { 6: // RSA 사용시 NoPadding 사용 7: rsa = javax.crypto.Cipher.getInstance("RSA/NONE/NoPadding"); 8: } catch (java.security.NoSuchAlgorithmException e) { …… } 9: return rsa; 10: }