Skip to main content

Cryptography

WebCrypto Operations

  • sign()
  • verify()
  • encrypt()
  • decrypt()
  • digest()
  • deriveBits()
  • deriveKey()
  • wrapKey()
  • unwrapKey()

Symmetric Encryption Algorithms

对称加密算法包括:

  • AES (Advanced Encryption Standard)
  • DES (Data Encryption Standard)
  • IDEA (International Data Encryption Algorithm)
  • Blowfish (Drop-in replacement for DES or IDEA)
  • RC4 (Rivest Cipher 4)
  • RC5 (Rivest Cipher 5)
  • RC6 (Rivest Cipher 6)

两类对称加密算法:

  1. Block algorithms: Set lengths of bits are encrypted in blocks of electronic data with the use of a specific secret key. As the data is being encrypted, the system holds the data in its memory as it waits for complete blocks.
  2. Stream algorithms: Data is encrypted as it streams instead of being retained in the system’s memory.

AES, DES, IDEA, Blowfish, RC5 and RC6 are block ciphers. RC4 is stream cipher.

Key Algorithms