package com.nohnit.jasypt; import org.jasypt.util.text.BasicTextEncryptor; public class EnkripsiTest { public static void main(String[] args) { String data = "Rimanda"; BasicTextEncryptor encryptor = new BasicTextEncryptor(); encryptor.setPassword("terserah , hahahaha"); String hasil = encryptor.encrypt(data); System.out.println(hasil); } }