Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java暗号化を使用してAESカウンターモードでワンタイムキーを生成するにはどうすればよいですか?そのワンタイムキーをPGP実装のセッションキーとして使用したいですか?
キーの生成は暗号モードに依存しません。キーを生成するには、を使用しKeyGeneratorます。
KeyGenerator
KeyGenerator aes = KeyGenerator.getInstance("AES"); aes.init(128); SecretKey secret = aes.generateKey();