CryptoSys API Library Manual

CipherStream.Hex Method

Enciphers data in a hex-encoded string using specified stream cipher.

Syntax

[C#]
public static string Hex(
	string inputHex,
	string keyHex,
	string ivHex,
	int counter,
	CipherStream.Algorithm streamAlg
)
[VB.NET]
Public Shared Function Hex ( _
	inputHex As String, _
	keyHex As String, _
	ivHex As String, _
	counter As Integer, _
	streamAlg As CipherStream.Algorithm _
) As String

Parameters

inputHex
Hex-encoded input data
keyHex
Hex-encoded key
ivHex
Hex-encoded Initialization Vector (IV, nonce) or "" for Arcfour
counter
Counter value for ChaCha20 only, otherwise ignored. Use 0 for default.
streamAlg
Type: CipherStream.Algorithm
Stream cipher algorithm

Return Value

Ciphertext in hex-encoded string or empty string on error

Remarks

See Also

VB6/C equivalent: CIPHER_StreamHex

[Contents] [Index]

[PREV: CipherStream.File Method...]   [Contents]   [Index]   
   [NEXT: CipherStream.Init Method...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.