はじめに 秘密鍵の生成 暗号化 複合化 まとめ はじめに パスワードで暗号化/複合化のサンプルをメモ。 package org.example; import javax.crypto.Cipher; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.SecretKeySpec; import java.nio.charset.StandardCharsets; import java.security.Key; import java.security.SecureRandom; import java.util.Arrays; import java.ut