Skip to content

Instantly share code, notes, and snippets.

@wilkice
Last active January 5, 2022 07:35
Show Gist options
  • Save wilkice/7e7a87752eb8b1002ed8bf9cc7c118a5 to your computer and use it in GitHub Desktop.
Save wilkice/7e7a87752eb8b1002ed8bf9cc7c118a5 to your computer and use it in GitHub Desktop.
[hash and encry] #dev

摘要算法: 返回固定长度的字符串

md5: 128 bit

SHA-1: 160 bit

SHA-2(SHA-256): 256 bit, 64 hex

加密算法

AES

  • symmetric

RSA

  • asymmetric

use rsa to transmit AES key, then use AES key to encrypt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment