Cipher Class
Generic Block Cipher
- BlockBytes
- Return the block size in bytes for a given cipher algorithm.
- Decrypt(Byte[], Byte[], Byte[], CipherAlgorithm, Mode)
- Decrypt data block in byte array.
- Decrypt(Byte[], Byte[], Byte[], CipherAlgorithm, Mode, Padding, Cipher.Opts)
- Decrypt data in a byte array using the specified block cipher algorithm, mode and padding.
- Decrypt(String, String, String, CipherAlgorithm, Mode)
- Decrypt data block as hex-encoded string.
- Decrypt(String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts)
- Decrypt hex-encoded data using specified block cipher algorithm, mode and padding.
- DecryptAEAD(Byte[], Byte[], Byte[], AeadAlgorithm)
- Decrypt data using the AES-GCM authenticated encryption algorithm.
- DecryptAEAD(Byte[], Byte[], Byte[], Byte[], AeadAlgorithm, Cipher.Opts)
- Decrypt data using the AES-GCM authenticated encryption algorithm with AAD and options.
- Encrypt(Byte[], Byte[], Byte[], CipherAlgorithm, Mode)
- Encrypt data block in byte array.
- Encrypt(Byte[], Byte[], Byte[], CipherAlgorithm, Mode, Padding, Cipher.Opts)
- Encrypt data in a byte array using the specified block cipher algorithm, mode and padding.
- Encrypt(String, String, String, CipherAlgorithm, Mode)
- Encrypt data block as hex-encoded string.
- Encrypt(String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts)
- Encrypt hex-encoded data using specified block cipher algorithm, mode and padding.
- EncryptAEAD(Byte[], Byte[], Byte[], AeadAlgorithm)
- Encrypt data using the AES-GCM authenticated encryption algorithm.
- EncryptAEAD(Byte[], Byte[], Byte[], Byte[], AeadAlgorithm, Cipher.Opts)
- Encrypt data using the AES-GCM authenticated encryption algorithm with AAD and options.
- FileDecrypt(String, String, Byte[], Byte[], CipherAlgorithm, Mode, Padding, Cipher.Opts)
- FileDecrypt(String, String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts)
- Decrypt a file passing key and IV as hex strings.
- FileEncrypt(String, String, Byte[], Byte[], CipherAlgorithm, Mode, Padding, Cipher.Opts)
- FileEncrypt(String, String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts)
- Encrypt a file passing key and IV as hex strings.
- KeyBytes
- Return the key size in bytes for a given cipher algorithm.
- KeyUnwrap
- Unwrap (decrypt) key material with a key-encryption key.
- KeyWrap
- Wrap (encrypt) key material with a key-encryption key.
- Pad(Byte[], CipherAlgorithm, Padding)
- Pad byte array to correct length for ECB and CBC encryption.
- Pad(String, CipherAlgorithm, Padding)
- Pad hex-encoded string to correct length for ECB and CBC encryption.
- Unpad(Byte[], CipherAlgorithm, Padding)
- Remove padding from an encryption block.
- Unpad(String, CipherAlgorithm, Padding)
- Remove padding from a hex-encoded encryption block.
[Contents] [Index]