登录
首页 » Android » 安卓 AES字符串加密

安卓 AES字符串加密

于 2023-07-06 发布 文件大小:68.63 kB
0 95
下载积分: 2 下载次数: 1

代码说明:

安卓手机端关于字符串的aes加密,工作模式为BCB,分组密码有五种工作体制:1.电码本模式(Electronic Codebook Book (ECB));2.密码分组链接模式(Cipher Block Chaining (CBC));3.计算器模式(Counter (CTR));4.密码反馈模式(Cipher FeedBack (CFB));5.输出反馈模式(Output FeedBack (OFB))。预制了随机数种子,本代码简单易懂,是学习分组密码算法的好例子,在手机端可实现简单文本加密

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • AsyncTask异步下载
    使用AsyncTask异步下载网络图片demo。。里面包括对AsyncTask类的继承实现,重写三个方法 分别为:onpreExecute()     DoInBackground()   onPostExecute()
    2022-08-03 21:26:38下载
    积分:1
  • android 录制视频实例 VideoRecordDemo
    android 录制视频实例 VideoRecordDemo
    2015-02-05下载
    积分:1
  • android联系人带字母检索源码
    android联系人带字母检索源码/** * 联系人列表适配器。 * * @author guolin */public class ContactAdapter extends ArrayAdapter { /** * 需要渲染的item布局文件 */ private int resource; /** * 字母表分组工具 */ private SectionIndexer mIndexer; public ContactAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { Contact contact = getItem(position); LinearLayout layout = null; if (convertView == null) { layout = (LinearLayout) LayoutInflater.from(getContext()).inflate(resource, null); } else { layout = (LinearLayout) convertView; } TextView name = (TextView) layout.findViewById(R.id.name); LinearLayout sortKeyLayout = (LinearLayout) layout.findViewById(R.id.sort_key_layout); TextView sortKey = (TextView) layout.findViewById(R.id.sort_key); name.setText(contact.getName()); int section = mIndexer.getSectionForPosition(position); if (position == mIndexer.getPositionForSection(section)) { sortKey.setText(contact.getSortKey()); sortKeyLayout.setVisibility(View.VISIBLE); } else { sortKeyLayout.setVisibility(View.GONE); } return layout; } /** * 给当前适配器传入一个分组工具。 * * @param indexer */ public void setIndexer(SectionIndexer indexer) { mIndexer = indexer; }}
    2014-04-13下载
    积分:1
  • Android捕获全局异常并写日志保存到sd卡
    Android捕获全局异常并写日志保存到sd卡,捕获异常消息后输出这个消息,可避免APP强制退出,抛出NullPointException玩玩哈,捕获全局异常是因为有的异常我们捕获不到,捕获时我们采用同步方法,以免单例多线程环境下出现异常,初始化,把当前对象设置成UncaughtExceptionHandler处理器,处理异常时我们还可以把异常信息写入文件,以供后来分析。   保存错误信息到文件中 返回文件名称,我们定义了saveCrashInfo2File(Throwable ex)方法,便于将文件传送到服务器,并保存信息到SD卡中。
    2022-06-11 21:16:06下载
    积分:1
  • 海康摄像头Android客户端Demo
    海康摄像头android客户端,单摄像头预览。
    2023-08-19 02:45:14下载
    积分:1
  • android 二维码扫描 实例源码下载
    花了好久弄的,分享给大家。。。
    2014-11-27下载
    积分:1
  • AndroidStaggeredGrid、瀑布流
    应用背景 AndroidStaggeredGrid、瀑布流 实现瀑布流效果 比较好用 关键技术 StaggeredGrid  方式实现瀑布流, 使用起来比较方便,也比较实用 希望能帮到大家
    2022-04-16 15:09:43下载
    积分:1
  • app
    说明:  掌握相册界面的开发,实现相册的立体与倒影效果(Grasp the development of album interface, realize the stereo and reflection effect of album)
    2020-06-16 08:20:02下载
    积分:1
  • 蓝牙寻找
    1.使用registerReceiver注册BroadcastReceiver来获取蓝牙状态、搜索设备等消息;2.使用BlueAdatper的搜索;3.在BroadcastReceiver的onReceive()里取得搜索所得的蓝牙设备信息(如名称,MAC,RSSI);4.通过设备的MAC地址来建立一个BluetoothDevice对象;5.由BluetoothDevice衍生出BluetoothSocket,准备SOCKET来读写设备;6.通过BluetoothSocket的createRfcommSocketToServiceRecord()方法来选择连接的协议/服务,这里用的是SPP(UUID:00001101-0000-1000-8000-00805F9B34FB);7.Connect之后(如果还没配对则系统自动提示),使用BluetoothSocket的getInputStream()和getOutputStream()来读写蓝牙设备。 
    2022-03-17 02:50:27下载
    积分:1
  • android 微信分享实例源码下载 WeixinShare
    android 微信分享实例源码下载 WeixinShare
    2014-08-07下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载