
  The highest tagged major version is
      
v2.
    
  
    
  
  
  
  
    
  
    
      
    
    
    
      package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v1.0.2
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Aug  1, 2024
  
      
  
    License: MIT
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 6
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 0
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
      
        
          
  
    
      
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
  
  
  
  
  
	  
  
  
    
    
    
  Decrypt 使用 AES-CBC 模式和给定的密钥对密文进行解密
参数:
  - key: []byte 用于解密的密钥。
 
  - ciphertext: []byte 需要解密的密文数据,包括初始向量和密文。
 
返回值:
  - []byte: 解密后的明文数据。
 
  - error: 如果发生错误,返回错误信息。
 
  
         
	  
  
  
    
    
    
  Encrypt 使用 AES-CBC 模式和给定的密钥对明文进行加密
参数:
  - key: []byte 用于加密的密钥。
 
  - plaintext: []byte 需要加密的明文数据。
 
返回值:
  - []byte: 加密后的数据,包括初始向量和密文。
 
  - error: 如果发生错误,返回错误信息。
 
  
         
  
    
      
     
   
        
      
      
        
  
    
      
      Source Files
      ¶
    
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.