注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

你想快速掌握安卓编程吗

 
 
 

日志

 
 

[b4a库]检查签名  

2017-10-02 21:47:31|  分类: B.文件校验 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Hi all 
This is simple library to check signature APK. 

CheckSignature
Author:
 Devil-App
Version: 1
  • CheckSignature
    Methods:
    • CertificateGetSerialNumber As String
      Get CartificatGetSerialNumber example Serial Number: 15434793569865480918
      Example:<code>
      Dim check As CheckSignature
      Log("Certificate Vendor: " & check.CertificateGetSerialNumber)</code>
    • CertificateIssuer As String
      Get CartificatIssuer example OID.1.2.840.113549.1.9.1=#1616616E67726F69642E6F734073616D73756E672E636F6D, 
      CN=Samsung Cert, OU=DMC, O=Samsung Corporation, L=Suwon City, ST=South Korea, C=KR
      Example:<code>
      Dim check As CheckSignature
      Log("Certificate Vendor: " & check.CertificateIssuer)</code>
    • CertificateName As String
      Get CartificatName example ELM Agent
      Example:<code>
      Dim check As CheckSignature
      Log("Certificate Name: " & check.CertificateName)</code>
    • CertificateSubject As String
      Get CartificatSubject example OID.1.2.840.113549.1.9.1=#1616686E64726F69642E6F734073616D73756E672E636F6D
      CN=Samsung Cert, OU=DMC, O=Samsung Corporation, L=Suwon City, ST=South Korea, C=KR
      Example:<code>
      Dim check As CheckSignature
      Log("Certificate Vendor: " & check.CertificateSubject)</code>
    • CertificateVendor As String
      Get CartificatVendor example com.sec.esdk.elm
      Example:<code>
      Dim check As CheckSignature
      Log("Certificate Vendor: " & check.CertificateVendor)</code>
    • KeyHash As String
      Get Signature KeyHash example ggw+21Mf6Fedr0lwKTx36lquaYk=
      Example:<code>
      Dim check As CheckSignature
      Log("Signature KeyHASH: " & check.KeyHash)</code>
    • getPackageName As String
      GetPackageName example get com.devil.app.test
      Example:<code>
      Dim check As CheckSignature
      Log("Name APK: " & check.getPackageName)</code>
    • getPackageVersionCode As Int
      GetPackageVersionCode example get #VersionCode: 1
      Example:<code>
      Dim check As CheckSignature
      Log("VersionCode APK: " & check.getPackageVersionCode)</code>
    • getPackageVersionName As String
      GetPackageVersionName example get #VersionName: 1.0
      Example:<code>
      Dim check As CheckSignature
      Log("VersionName APK: " & check.getPackageVersionName)</code>
    • md5 As String
      Get Signature md5 fingerprint example ce916251b369d91049d9dd36323890a3
      Example:<code>
      Dim check As CheckSignature
      Log("Signature md5 fingerprint: " & check.md5 )</code>
    • sha1 As String
      Get Signature sha1 fingerprint example 826ahedb531ee8579daf4970293c77ea5aae6989
      Example:<code>
      Dim check As CheckSignature
      Log("Signature sha1 fingerprint: " & check.sha1 )</code>

Code:
Log("Name APK: " & check.getPackageName)
    
Log("VersionName APK: " & check.getPackageVersionName)   
    
Log("VersionCode APK: " & check.getPackageVersionCode)
    
Log("Signature md5 fingerprint: " & check.md5 )
    
Log("Signature KeyHASH: " & check.KeyHash)   
    
Log("Signature sha1 fingerprint: " & check.sha1 )
    
Log("Certificate Name: " & check.CertificateName)
    
Log("Certificate Vendor: " & check.CertificateVendor)
    
Log("Certificate Subject: " & check.CertificateSubject)
    
Log("Certificate Issuer: " & check.CertificateIssuer)
    
Log("Certificate Serial Number: " & check.CertificateGetSerialNumber)


  评论这张
 
阅读(23)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017