How to encrypt data using AES in Java

♀尐吖头ヾ 提交于 2019-12-03 12:52:22

This is probably the best guide that I've found on the subject. It explains the basics, one concept at a time, in simple terms.

Arshad shaik

Formally it encrypts the string into unreadable format. Use same code to decrypt.

ENCRYPT:

    String s1="arshad";

    char[] s2=s1.toCharArray();
    int s3= s2.length;
    System.out.println(s3);
   int i=0;
   // for(int j=0;j<s3;j++)
          //  System.out.println(s2[j]);

       for(i=0;i<((s3)/2);i++)
        {
            char z,f=10;
            z=(char) (s2[i] * f);
            s2[i]=s2[(s3-1)-i];
            s2[(s3-1)-i]=z;
            String b=new String(s2);
            print(b);
        }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!